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

Re: chinese characters just working when defined in x

Subject: Re: chinese characters just working when defined in xsl-fo-page directly
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Sat, 06 Nov 2004 17:24:47 +0100
utf 8 chinese
Hi,

I'm not sure I understand the problem, but your XML samples contain numeric character references (&#1234;) and you say you get unicode references as well. I suspect you mean utf-8 or utf-16 represenation by the latter, instead of the numeric character references you might prefer.

One thing that could be the case is that the output indeed contains utf-8 characters, while for example your browser thinks it is getting iso-latin characters. Though the character numbers in the output are actually correct, the characters are still not presented correctly.

You say you are using Cocoon. Are you sure that it is configured to use unicode or utf-8 as default character set? Look for the string 'encoding' in WEB-INF/web.xml. It might be the case that your stylesheets generate utf-8, but Cocoon is telling the browser that it will get iso-latin. This confuses the browser and it depends on the browser what the result will be.

Hope this helps...

Grtz,
Geert

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.