Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Chinese hieroglyphs in dialogs

0 views
Skip to first unread message

Konstantin Klyatskin

unread,
Mar 15, 2002, 3:48:35 PM3/15/02
to
I have installed CE-Suite (Chinese localization) under
PocketPC and I try to output any Chinese text in a dialog.
But I can't.

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>
&#1108;&#1074;_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

1.htm

Konstantin Klyatskin

unread,
Mar 15, 2002, 3:59:13 PM3/15/02
to
I attache HTML file as ZIP now, since it has been
corrupted in previous posting.

--
Konstantin

chinese.zip

Wah

unread,
Mar 17, 2002, 12:37:59 PM3/17/02
to
Is it the problem of Unicode and Big5?
As WinCE is using unicode, so i think you should use unicode coding, not
big5.

Wah


"Konstantin Klyatskin" <klya...@mtu-net.ru> wrote in message
news:34a801c1cc62$c6abbe50$37ef2ecf@TKMSFTNGXA13...

0 new messages