tags:

views:

147

answers:

3

Is there a library available or do I need to design/code my own? The target platform is very old and the compiler does not provide wchar_t.

No library allowed so plain c/headers will be appropriate

+5  A: 

Here is a sample implementation in C

Joe
Fantastic. Thanks a lot
MeThinks
+2  A: 

Unicode consortium's sample implementation is here. Look up this FAQ and examples. Or, do you want to try out a library like libidn or libicc?

dirkgently
thanks dirkgently. No libraries allowed in so prefer plain c and headers. Just updated the question to include this information.
MeThinks
A: 

also You can try iconv(). On some platform it's part of C-runtime.

vitaly.v.ch
Thanks. Don't have this on our platform. We will be migrating to new platform soon and will try this one if i have no solution by then
MeThinks