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

Re: Global parameters with UTF-8 characters and ???s

Subject: Re: Global parameters with UTF-8 characters and ???s <Disregard Previous>
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Thu, 3 Aug 2006 10:24:16 +0100
x3f character
On 8/2/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Is this the right solution?  Or does it just point out what
> the issue is?

It's a viable workaround. But it suggests that there is some kind of
configuration problem somewhere, perhaps with the web server.

It effectively takes encoding out of the equation, the ascii characters & #nnn; are written to disk instead of a single unicode character, and the browser reads ascii instead of the single unicode character.

If you can see the correct characters in the browser now then it
suggests they are contained in the font that's being used, and the
problem lies with the file being written in one encoding and read in
another.  When the encoding doesn't contain a mapping for a given byte
sequence a question mark ? is used to mean "no mapping".

If you use a hex editor at every stage of the process to find out when
the bytes for the character ? are x3F (meaning the ? really is a ? and
its not just your viewer) then you'll know that the last stage was the

If you are using Java then it's often the case of the setting default
platform encoding to UTF-8:

System.setProperty("file.encoding", "UTF-8"))

This ensures any operations that involve encodings (where an optional
encoding agument hasn't been specified, eg getBytes()) will use UTF-8.
If you don't specify this then ISO-8859-1 is used (on Windows
platforms anyway, afaik).


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.