Would converting from UTF-16 (Visual C ++ wchar_t form) to UTF-8, and then possibly from UTF-8 to UCS-4 (GCC wchar_t form), be an acceptable answer?
If so, then on Windows you can use the WideCharToMultiByte function (with CP_UTF8 for the CodePage parameter), for the first part of the conversion. Then you can paste the received UTF-8 strings directly into your program or convert them further. Here is a message showing how one person did it; You can also write your own code or do it manually (the official specification with a section on how to convert UTF-8 to UCS-4 can be found here ). There may be an easier way; I am not too familiar with Linux conversion products.
source share