Re: How to translate a chinese character to unicode by using c#.net?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Replacing fonts -- double-byte vs. single-byte
    ... First, in PPT 2003 and 2007, if I set text in MS Arial Unicode, then try ... the character. ... type of encoding to point to the right character info in a font. ...
    (microsoft.public.powerpoint)
  • Re: Replacing fonts -- double-byte vs. single-byte
    ... First, in PPT 2003 and 2007, if I set text in MS Arial Unicode, then try to do ... This is probably way oversimplified, but in Unicode, every character is a two ... type of encoding to point to the right character info in a font. ...
    (microsoft.public.powerpoint)
  • Re: English versus German
    ... The point is that the way TeX does it doesn't require Unicode, ... I don't know of a simple way to get both accents on the same character ... Presumably you could also assign a keyboard shortcut to it in Word2003 ... font from Cambria to MS Reference Sans Serif, and now, everything I ...
    (sci.lang)
  • Re: Fonts and character encodings
    ... Do Fonts know anything about coded character sets (Unicode, ... does Font file specify which coded character sets ... would consider a coded character set essentially equivalent to a character encoding or code page. ... you can only draw Unicode strings anyway. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Diacritic accents not displaying properly
    ... You will only get the correct character in the font specified. ... Unicode will enable you to change the font for characters that are encoded ... ok, so if Times CSX+ is not unicode, then i don't understand why it worked ...
    (microsoft.public.mac.office.word)