you can uses glibc's iconv(3) function. you'll want to convert between UTF-16LE (or UTF-16BE if your on a bigendian platform) and WCHAR_T (assuming a recent enough version of glibc).

darin



Yvan Altmann wrote:
Hi,
I use Linux + gcc 3.3 and one of my current problems is that of converting between both flavours of strings :
* gcc's standard wchar_t is 32-bits (and I need it to stay so, otherwise some libraries will stop working)
* Mozilla's PRUnichar is 16-bits


How do I convert between 16-bits and 32-bits encodings ? Should I go through UTF8 conversion ?

Be reading you,
 YA




Reply via email to