Re: How to translate a chinese character to unicode by using c#.net?
- From: "<ctacke/>" <ctacke[@]opennetcf[dot]com>
- Date: Sun, 15 Apr 2007 08:40:48 -0400
CE is pure Unicode, so if his device is not displaying a character that's in
a file, then it's a Font issue or the character value is incorrect and
therefore it's correctly displaying the data but the data is wrong. In
either case it's not a problem with the OS. CE certainly does have
codepages otherwise it would be pretty tough for the system to look up
glyphs to display.
Going back and looking at the OP's code, the problem is now pretty obvious.
He's taking Unicode and converting to ASCII and expecting it to not lose
data that can only be represented in Unicode. So Explorer is displaying the
file properly, he's just lost data in his conversion and should be using the
proper encoding.
"Mihai N." <nmihai_year_2000@xxxxxxxxx> wrote in message
news:Xns9913EC267E04MihaiN@xxxxxxxxxxxxxxxx
It's a font problem. You're trying to display a glyph that is not in the
codepage on the device. Install the right font and it will work.
Windows CE/Mobile is Unicode, and the applications are Unicode only
(there are no ANSI applications, like on desktop).
So, there is no "codepage on the device"
True, devices with the UI localized into English do not include Chinese
fonts. But this has nothing to do with the code page, it is just to save
space.
--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email
.
- Follow-Ups:
- References:
- How to translate a chinese character to unicode by using c#.net?
- From: tsung-yu
- Re: How to translate a chinese character to unicode by using c#.net?
- From: <ctacke/>
- Re: How to translate a chinese character to unicode by using c#.net?
- From: tsung-yu
- Re: How to translate a chinese character to unicode by using c#.net?
- From: <ctacke/>
- Re: How to translate a chinese character to unicode by using c#.net?
- From: Mihai N.
- How to translate a chinese character to unicode by using c#.net?
- Prev by Date: How to save a Chinese string into a text file correctly?
- Next by Date: Re: error when running sql statement
- Previous by thread: Re: How to translate a chinese character to unicode by using c#.net?
- Next by thread: Re: How to translate a chinese character to unicode by using c#.net?
- Index(es):
Relevant Pages
|