Re: [xml] Conversion Unicode to UTF-8

On Wed, Feb 01, 2006 at 02:15:19PM +0100, bernd bredow takeid com wrote:

I have a Windows Unicode project and use libxml2-2.6.20.
How can I convert a wide character string ( wchar_t * or LPCTSTR ) to UTF-8 ?

Has anybody a sample ?

  completely depends on your environment. If I remember correctly
wchar_t can be 16bits or 32bits depending on the tool chain. Check your
C libraries docs.


Daniel Veillard      | Red Hat
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]