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

Re: Recognising Unicode in a CSV to XML transform

Subject: Re: Recognising Unicode in a CSV to XML transform
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 30 May 2008 09:28:59 +0100
Re:  Recognising Unicode in a CSV to XML transform
> I was viewing the result in the display window of the Kernow v1.6
processer.

Ahh I could probably do somethere there... In Java where an encoding
isn't specified it uses the platform default encoding, which on
Windows is the single byte "cp-1252"... so when you give it multi-byte
UTF-8 you get to see each byte of the multi-byte sequence rather than
the character that sequence represents (C is the character mapped to
the byte in UTF-8 which indicates that it's a multi-byte character,
which is why you often see it)

In the mean time you set the platform encoding using the "file.encoding"
switch:

-Dfile.encoding=UTF-8

For Kernow this means editing the run.bat to add that switch:

javaw -Dfile.encoding=UTF-8 -Xmx256m -cp kernow.jar.......

--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

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.