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

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

I have a Chinese xml file.For example:

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

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 for more informations


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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