where does the meta tag come from?
-
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
-
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
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 -
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
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."