Let's say I have the following:
Why does MultiByteToWideChar() drop the \253 character when you encode from UTF8? I was under the impression that UTF8 was completely backwards compatible to char strings, but this doesn't seem to be the case. Any unicode gurus know what is going on here?
char msg = "Hello \253 Hello";
n = MultiByteToWideChar(CP_ACP,0,msg, strlen(msg),wcmsg1,100);
wcmsg1[n] = 0;
n = MultiByteToWideChar(CP_UTF8,0,msg, strlen(msg),wcmsg2,100);
wcmsg2[n] = 0;