Chinese Character display issue 
Author Message
 Chinese Character display issue

Hi , everyone ,
       I  met a difficult problem I can't slove. It 's about Chinese
Character display.

 We are trying to develop the application which will display Chinese
Character.
As we know that in PocketPC  it can  only display Chinese string in Unicode
format.
 So we use the following code to convert it.
----------------------------------------------------------------------------
---------------------------

     char szInBuf[] = {"?"} ;                  // it 's a Chinese Character
between quotation mark.
                                                                 //  in
memory it is0xd2,0xbb,
     TCHAR szOutBuf[100] = {0};            //   the target memory storing
unicode value

    MutibyteToWidechar(CP_ACP,MB_COMPOSITE,szInBuf,2,szOutBuf,2);
----------------------------------------------------------------------------
--------------------------------

We expect szOutBuf memory value is " 0x4E00" which is unicode value for this
Chinese character , but actually it is wrong value , it is  0x004f,0x0300.

These code works fine under Windows 2000 Professional.

The hardware platform is :
O2 xda , english version  PocketPC2002 , with ChineseStar installed. IE and
notepad can display Chinese Character correctly .

The IDE  is :  Embeded VC3.0 .

Ricky
Your sincerely



Mon, 19 Sep 2005 21:23:27 GMT  
 Chinese Character display issue
You are using "CP_ACP" as your codepage.  This is the
default ANSI codepage, which contains no Chinese
characters.  To convert from a Chinese codepage to
Unicode, you need to know the numeric value of the
codepage and use it instead of "CP_ACP".  Additionally,
you must ensure that the codepage you intend to use is
valid on the device by using the IsValidCodePage()
function.

Quote:
>-----Original Message-----
>Hi , everyone ,
>       I  met a difficult problem I can't slove. It 's
about Chinese
>Character display.

> We are trying to develop the application which will
display Chinese
>Character.
>As we know that in PocketPC  it can  only display Chinese
string in Unicode
>format.
> So we use the following code to convert it.
>----------------------------------------------------------
------------------
>---------------------------

>     char szInBuf[] = {"?"} ;                  // it 's a
Chinese Character
>between quotation mark.

       //  in
>memory it is0xd2,0xbb,
>     TCHAR szOutBuf[100] = {0};            //   the

target memory storing
Quote:
>unicode value

>    MutibyteToWidechar

(CP_ACP,MB_COMPOSITE,szInBuf,2,szOutBuf,2);
Quote:
>----------------------------------------------------------
------------------
>--------------------------------

>We expect szOutBuf memory value is " 0x4E00" which is

unicode value for this

- Show quoted text -

Quote:
>Chinese character , but actually it is wrong value , it
is  0x004f,0x0300.

>These code works fine under Windows 2000 Professional.

>The hardware platform is :
>O2 xda , english version  PocketPC2002 , with ChineseStar
installed. IE and
>notepad can display Chinese Character correctly .

>The IDE  is :  Embeded VC3.0 .

>Ricky
>Your sincerely

>.



Mon, 19 Sep 2005 23:59:14 GMT  
 Chinese Character display issue
Have you tried Chinese Pocket PC?

http://www.microsoft.com/presspass/press/2001/dec01/12-
06PocketPCChineseLaunchPR.asp  

John

Quote:
>-----Original Message-----
>Hi , everyone ,
>       I  met a difficult problem I can't slove. It 's
about Chinese
>Character display.

> We are trying to develop the application which will
display Chinese
>Character.
>As we know that in PocketPC  it can  only display Chinese
string in Unicode
>format.
> So we use the following code to convert it.
>----------------------------------------------------------
------------------
>---------------------------

>     char szInBuf[] = {"?"} ;                  // it 's a
Chinese Character
>between quotation mark.

       //  in
>memory it is0xd2,0xbb,
>     TCHAR szOutBuf[100] = {0};            //   the

target memory storing
Quote:
>unicode value

>    MutibyteToWidechar

(CP_ACP,MB_COMPOSITE,szInBuf,2,szOutBuf,2);
Quote:
>----------------------------------------------------------
------------------
>--------------------------------

>We expect szOutBuf memory value is " 0x4E00" which is

unicode value for this

- Show quoted text -

Quote:
>Chinese character , but actually it is wrong value , it
is  0x004f,0x0300.

>These code works fine under Windows 2000 Professional.

>The hardware platform is :
>O2 xda , english version  PocketPC2002 , with ChineseStar
installed. IE and
>notepad can display Chinese Character correctly .

>The IDE  is :  Embeded VC3.0 .

>Ricky
>Your sincerely

>.



Wed, 21 Sep 2005 00:42:53 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Problem Display Chinese Characters in VC++ in Windows 2000 with NJStart Viewer

2. Display mixed character string in Simplified and Traditional Chinese

3. how to display chinese character

4. How to display Chinese Character

5. Chinese Character Display!!!!

6. Old question:Problem to display Chinese Character

7. How to display the Chinese Character in PPC2002?

8. Display Chinese Characters

9. display chinese character problem

10. SOS --- display chinese characters

11. *** Printout Chinese Chinese Characters dynamically***

12. Display Chinese Font in Chinese Windows 95?

 

 
Powered by phpBB® Forum Software