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

Re: getting undisered results , when trying to display japane

  • To: <xml-dev@l...>
  • Subject: Re: getting undisered results , when trying to display japanese characters
  • From: "Rick Jelliffe" <ricko@a...>
  • Date: Sun, 2 Mar 2003 20:58:30 +1100
  • References: <00fc01c2df6a$9357fde0$b400a8c0@asim>

japane name
From: "asim" <qazi@a...>

> this my XSL file with japnese characters. if I transform it (my transformation > funtions is wriiten bellow the file)  it shows me "?" question marks , plz help, > i did saved this file as UTF-8 and using win2k notepad.

HTML is horrible to work with, for multilingual work.

There are several places where problems can creep in:

1) The browser is using the wrong encoding.  Check whether
your browser has been set to "auto-detect" the encoding, or
whether it is fixed to some other encoding.   (In this case, the
"?" means "unexpected code".)

2) Your system may have fonts installed which do not have 
the Japanese characters.  This is less likely nowdays, but
still can happen.  (In this case, the "?" means "unavailable

3) You are reading the files over the web, and the webserver
is not labelling the data correctly. You need to check your
web-server's documentation for this, for example to set the
.htaccess file correctly if you are using Apache. (In this case,
the "?" means "unexpected code".)

I hope these are some use.  A systematic approach is better than
trial and error: in a HEX editor, look at the HTML file your XSLT 
script produces:-- if the Japanese characters each take three bytes
where all the bytes are > 0x80, then your file is indeed UTF-8
and you can concentrate on the HTTP and browser side of things.
If the Japanese characters take two characters each, then it is not
UTF-8 and you need to look at your XSLT code and implementation.

Rick Jelliffe


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

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.