xsl-list
[Top] [All Lists]

RE: [xsl] I18N / UTF-8 versus US-ASCII

2006-04-04 02:25:52
Even if I open the UTF-8 file with unipad( UTF-8 enabled editor) , I see 
following.

<Dependencies>
<Source>europeǻ��</Source>
<Target>email_node3</Target>
</Dependencies>

Whereas I expect something like following

  <Dependencies>
  <Source>europe퓨터</Source> 
  <Target>email_node3</Target> 
  </Dependencies>


Regards,
Amit 
 

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Tuesday, April 04, 2006 2:39 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] I18N / UTF-8 versus US-ASCII

When I use UTF-8 encoding, it makes these characters into 
garbled mess, like Ç»ÅÍ
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
e.g 
<Dependencies>
<Source>europeÇ»ÅÍ</Source>
<Target>email_node3</Target>
</Dependencies>

This is because you are looking at the UTF-8 file using a text editor or
other display software that doesn't understand UTF-8. If you view it with a
UTF-8 enabled editor, you'll probably find that it's not a garbled mess at
all.

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



--~------------------------------------------------------------------
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>
--~--