On Nov 7, 2007 9:03 AM, Colin Finck <mail@colinfinck.de> wrote:


As I also said, WideCharToMultiByte() can cause data corruption if a Unicode
character isn't supported by the currently selected ANSI codepage.
MultiByteToWideChar() is no problem, but the other direction can be
problematic.


That is not 100% true.  It is called WideCharToMultiByte and not WideCharToAnsi for a reason.  It is possible to convert from unicode to UTF8 instead of converting to ANSI, and that will preserve the characters.  Though it may need to be converted back to unicode to display it on Win9x, for example.

-ShadowFlare