Re: [xml] mapping 2-byte Unicode char to UTF-8?



On Thu, Jun 05, 2003 at 02:30:47AM -0400, Chris Ryland wrote:
Forgive the newbie question, but is there anything exposed in the 
libxml2/iconv framework (function, macro) that would take a 2-byte 
Unicode binary character value (yes, I realize this isn't 
extended-Unicode capable ;-) and turn it into the properly-encoded 
UTF-8 character sequence?

Thanks for any hints.

  there is UTF16LEToUTF8() and UTF16BEToUTF8() in encoding.c
but they are not public.

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]