xsl-list
[Top] [All Lists]

Re: [xsl] XSL: Print Euro

2008-08-11 06:04:50
2008/8/11 Colin Paul Adams <colin(_at_)colina(_dot_)demon(_dot_)co(_dot_)uk>:
"Raja" == Sathasivam, Elayaraja 
<elayaraja(_dot_)sathasivam(_at_)capgemini(_dot_)com> writes:

   Raja> My ascii file output shows as â'  Is it right ?

No. That is not an ASCII character.


That's an a with circumflex, which usually indicates you've parsed a
multi-byte UTF-8 character using a single byte encoding.

For a good explanation read this: http://www1.tip.nl/~t876506/utf8tbl.html

Just make sure that whenever you go from characters to bytes and vice
versa that you always use the same encoding - in Java it's simplest
just to set the platform default encoding to UTF-8 eg:

-Dfile.encoding=UTF-8

If you displaying the result in a browser, make sure the appropriate
meta is set.

If you are just viewing the result in some text editor (say eclipse's
output pane) make sure that's also set to use UTF-8

Fun isn't it?

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>