Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. XML / XSL
  4. where does the meta tag come from?

where does the meta tag come from?

Scheduled Pinned Locked Moved XML / XSL
xmlhtmlquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    particle2k
    wrote on last edited by
    #1

    hello, i have a xml file, starting with , then xml data, and a xsl file, starting with: and a meta tag included in side the : . now i transform the data via transformnode and the resulting html file contains 2 meta tags inside the : and the page is not displayed properly. some italian characters are displayed as japanese letters. if i manually remove the UTF-16 meta tag from the html file, the page is displayed correctly. where does this UTF-16 meta tag comes from? and what can i do about it? many thanks enrico

    J P 2 Replies Last reply
    0
    • P particle2k

      hello, i have a xml file, starting with , then xml data, and a xsl file, starting with: and a meta tag included in side the : . now i transform the data via transformnode and the resulting html file contains 2 meta tags inside the : and the page is not displayed properly. some italian characters are displayed as japanese letters. if i manually remove the UTF-16 meta tag from the html file, the page is displayed correctly. where does this UTF-16 meta tag comes from? and what can i do about it? many thanks enrico

      J Offline
      J Offline
      J Dunlap
      wrote on last edited by
      #2

      particle2k wrote: some italian characters are displayed as japanese letters. UTF-16 means that each character is 2 bytes. This is helpful for languages which have more than 255 characters. For other languages, UTF-8 should be used (1 byte, or 8 bits, per character).

      "Do unto others as you would have them do unto you." - Jesus
      "An eye for an eye only makes the whole world blind." - Mahatma Gandhi

      1 Reply Last reply
      0
      • P particle2k

        hello, i have a xml file, starting with , then xml data, and a xsl file, starting with: and a meta tag included in side the : . now i transform the data via transformnode and the resulting html file contains 2 meta tags inside the : and the page is not displayed properly. some italian characters are displayed as japanese letters. if i manually remove the UTF-16 meta tag from the html file, the page is displayed correctly. where does this UTF-16 meta tag comes from? and what can i do about it? many thanks enrico

        P Offline
        P Offline
        Philip Fitzsimons
        wrote on last edited by
        #3

        this is happening because of the way you are specifying the transformation. the code is guessing that you want UTF-16. check your <xsl:output encoding=""/>


        "When the only tool you have is a hammer, a sore thumb you will have."

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups