Andrew,
Thanks for the response, but it doesn't appear to be a problem with the
browser. I have the following snippet in the XSL which renders properly
in both browsers:
<td class="body" align="right" width="85" valign="center">
日本語:
</td>
When the UTF-8 characters are embedded in the XSL, they seem to work
fine. It appears to be only when I transfer them from the XML using the
xsl:value-of element, that they are not coming across properly. Is
there anything else I could be missing?
Thanks again.
Regards,
Dave
-----Original Message-----
From: andrew welch [mailto:andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com]
Sent: Thursday, July 20, 2006 2:03 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Japanese characters show up as ? in browser
On 7/20/06, David Nesbitt <dnesbitt(_at_)vuetechnology(_dot_)com> wrote:
I am using Xalan to transform XML into HTML. The Japanese characters,
however, are shown as question marks in the browser.
Here is a snippet of XML:
<Id>日本語</Id>
<Description>花子</Description>
Here is the corresponding snippet of XSL that transforms this XML:
<option>
<xsl:attribute name="value"><xsl:value-of
select="Id"/></xsl:attribute>
<xsl:value-of select="Description"/>
</option>
Here is the HTML source I am getting from the browser:
<option value="???">??</option>
I am using encoding="UTF-8" in the xsl:output element. Any ideas of
what may be going wrong? I have tried both FireFox and IE.
Ensure the browser is reading the file in the correct encoding and use
a font that contains those characters.
cheers
andrew
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--