Thanks jangko .These solutions are c specific. I am on Windows and in winapi 
there are two functions multibytetowidechar and widechartomultibyte .if Utf8 
string contains character with size of more than one byte then 
multibytetowidechar with cp_utf8 we can get utf16 string. Is there similar 
functions available for Linux and Mac. Actually I want to use Nim language for 
making shared libraries for all 3 major desktop plateforms. It is a supplement 
to use plateforms API embedded in Nim proc, exported in dll,so,dylib.. etc. For 
C backend it is ok but cpp backend ABI is problem.

Reply via email to