Re: [xml] XMLChar to char conversion



On Thu, May 06, 2004 at 07:25:31PM +0530, Subhabrata Bhattacharya wrote:
Hi,
 
Is there a way so that I can convert a UNICODE encoded XMLChar string into an ASCII char* string so that it 
can be used by standard functions like atoi() that take char * as arg.

  In general no. You cannot map back UNICODE to ASCII. But your question
is wrong. I strongly suggest you read the definition for UTF8 
  http://www.ietf.org/rfc/rfc3629.txt
and the page on encoding
  http://xmlsoft.org/encoding.html

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://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]