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

Re: 16-bit chars rendered as "?" in UTF-8?

Subject: Re: 16-bit chars rendered as "?" in UTF-8?
From: John English <john.foreign@xxxxxxxxx>
Date: Wed, 15 Aug 2012 12:03:28 +0300
Re:  16-bit chars rendered as "?" in UTF-8?
On 14/08/2012 14:35, Wolfgang Laun wrote:
If changing the file's encoding specification fixed the problem you
must have some byte sequences representing codepoints in
UTF-8, possibly besides others represented as entities.

No, it's pure 8-bit ASCII (well, 7-bit even); it's also the same document being presented via two different paths. In one case it was OK, in the other not. I'm completely baffled.

I have added "response.setEncoding("UTF-8")" to all my servlets
and the problem has gone away; I've also added a debug message
to my XSLT filter to display the encoding. (Oddly enough, my
error handling servlet still says ISO-8859-1 despite setting
the encoding.)

I hate it when something fixes a problem and I don't understand
what the original problem was or why the fix worked!
--
John English

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.