M
mikeyjudkins
I have an XML file containing localized strings in 9 languages, encoded
in Unicode (UTF-8). Im trying to parse this XML document via XSLT
(Apache Xalan) to selectively render localized strings depending on a
users selected language.
The problem Im running into is that when the XML document is sent
through the XSLT stylesheet, all European special characters (such as
umlauts, accents, etc) are converted to html character entities (as
expected behavior), however, the Asian character sets are shown as
question marks in the page source. It seems as if the XSLT engine does
not know how to convert the Asian Unicode strings to useable character
entities (or it is trying incorrectly to convert them to something that
then the browser cannot understand).
As an example, below is the output I get using the simplest of XSLT to
take the localized XML and output it to a UTF-8 encoded html file. Note
the 2 lines in question marks, which in the XML source, appear
correctly as Japanese and Chinese.
French
Français
Französisch
Français
Frans
Francese
???????????????
??????
Francés
Been banging my head against my desk for awhile now. Any ideas
thankfully accepted!
in Unicode (UTF-8). Im trying to parse this XML document via XSLT
(Apache Xalan) to selectively render localized strings depending on a
users selected language.
The problem Im running into is that when the XML document is sent
through the XSLT stylesheet, all European special characters (such as
umlauts, accents, etc) are converted to html character entities (as
expected behavior), however, the Asian character sets are shown as
question marks in the page source. It seems as if the XSLT engine does
not know how to convert the Asian Unicode strings to useable character
entities (or it is trying incorrectly to convert them to something that
then the browser cannot understand).
As an example, below is the output I get using the simplest of XSLT to
take the localized XML and output it to a UTF-8 encoded html file. Note
the 2 lines in question marks, which in the XML source, appear
correctly as Japanese and Chinese.
French
Français
Französisch
Français
Frans
Francese
???????????????
??????
Francés
Been banging my head against my desk for awhile now. Any ideas
thankfully accepted!