Let say I have the following char array:
char mmm[] = {0xBA,0xE2,0xBD,0x4C,0,0};
That is unicode string for 2 Chinese hieroglyphs. Whenever
I put this text in HTML code (file attached):
--------
<HTML><HEAD>
<TITLE></TITLE>
</HEAD>
єв_L
</HTML>
----------
It works OK and I can see 2 correct hieroglyphs in
internet browser with either Simplified or BIG5 encoding.
But when I do similar thing in C:
------
wchar_t wstr[10];
char mmm[] = {0xBA,0xE2,0xBD,0x4C,0,0};
memcpy(wstr,mmm,strlen(mmm)+2);
SetDlgItemText(DialogHwnd,IDC_EDIT_TRANSLATION,wstr);
----------
the hieroglyphs are wrong. What I'm doing wrong? Please
advise me... could you cc to klya...@mtu-net.ru as
well...
Thank you.
--
Konstantin
Wah
"Konstantin Klyatskin" <klya...@mtu-net.ru> wrote in message
news:34a801c1cc62$c6abbe50$37ef2ecf@TKMSFTNGXA13...