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

RE: using xsl:message with UTF-8 characters

Subject: RE: using xsl:message with UTF-8 characters
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 23 Apr 2007 13:44:34 +0100
RE:  using xsl:message with UTF-8 characters
OK, putting this all together, we seem to have a solution:
 
1. Trigger the unicode support for all pipe etc (default is 
cp1252 sometimes known as "ansi") with the command:
    cmd /u

2. Set the font of the console to one that has glyphs in the 
unicode range:
    - go to console system menu (Alt-Space)
    - select Properties > Font
    - select "Lucida Sans" (MS will automatically select 
"Lucida Sans Unicode" when it is needed and when it is 
available on your system)

3. Change the codepage of the console screen to use Unicode 
(default is IBM 437) with the command:
    chcp 65001
  
4. Call your commands *without* using a batch file (won't 
work anymore...). You can put your command in an environment 
variable for convenience.

5. Set the Java system property -Dfile.encoding=utf8 on the command line for
example

chcp 65001
java -Dfile.encoding=utf8 net.sf.saxon.Transform in.xml my.xsl

The Saxon patch I've issued in 
https://sourceforge.net/tracker/index.php?func=detail&aid=1705811&group_id=2
9872&atid=397617

isn't then needed: this only has the effect of giving better fallback
behaviour when the output destination doesn't support Unicode.

Thanks Abel and Andrew. You learn new things every day.

I'll copy this to the Saxon Wiki.

Michael Kay
http://www.saxonica.com/

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.