[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Japanese characters show up as ? in browser

Subject: RE: Japanese characters show up as ? in browser
From: "David Nesbitt" <dnesbitt@xxxxxxxxxxxxxxxxx>
Date: Thu, 20 Jul 2006 09:43:43 -0700
japanese characters firefox

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">

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.


-----Original Message-----
From: andrew welch [mailto:andrew.j.welch@xxxxxxxxx]
Sent: Thursday, July 20, 2006 2:03 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Japanese characters show up as ? in browser

On 7/20/06, David Nesbitt <dnesbitt@xxxxxxxxxxxxxxxxx> 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>&#x65E5;&#x672C;&#x8A9E;</Id>
>         <Description>&#x82B1;&#x5B50;</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.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.