Re: [xml] about xmlNodeListGetString,about how to recognize Chinese?



On Wed, Oct 15, 2003 at 04:33:38PM +0800, ??? wrote:
hi,all

I have a Chinese xml file.For example:

<?xml version="1.0" encoding="GB2312" ?>
<smsxml>
 <sms>
  <phone>13814046926</phone>
  <msg>HIï¼?你好ã??è¿?æ?¯SMS DEMOæµ?è¯?Iã??</msg>
 </sms>
</smsxml>

when i use xmlNodeListGetString,i got an unnormal value of msg is unnormal number.i just want to know the 
orginal information(HIï¼?你好ã??è¿?æ?¯SMS DEMOæµ?è¯?Iã??),so what can i do ?

  You will get UTF-8 content. Libxml2 automatically convert to the
internal UTF-8 format independantly of the initial encoding,
please read http://xmlsoft.org/encoding.html for more informations

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]