Re: Mobile applications are unicode, why file explorer not showing UTF16 files?

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



<fltcpt@xxxxxxxxx> wrote in message news:1182346534.977735.311540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I assumed common Windows Mobile applications to be double byte UNICODE aware.

Some are. Most APIs are. Some APIs don't pretend to be, some APIs do pretend to be but aren't, and most are. With applications it depends on the application.

However, when I browse files with non-ascii names, they show up as squares.

Are you using File Explorer on the device itself? If so, I think it should only depend on the font. I obtained similar results in two cases:

(1) On a normal device, I installed a font that lacked some European characters that aren't included in ordinary Japanese character sets, for example the French c-cedilla. Then I either created a theme file or directly manipulated the registry to make Windows Mobile use that font, and then rebooted. With a filename that contained the c-cedilla, that character did not show up.

(2) On a device set for the English market, I copied over some fonts, and some files with names that contained some Japanese characters and some foreign characters. But at first I didn't use a theme file or registry settings to make Windows Mobile use the Japanese fonts, so I think the effects were the same as yours. But after the registry was set to make Windows Mobile use Japanese fonts, and then rebooting, the characters all showed up correctly.

StringCchPrintf was still broken though. This didn't depend on a font, it depended on the code page for conversion from ANSI (code page 1252 in an English environment) to Unicode. As soon as it hit an English character (the pound sign) it broke. Some other APIs such as gethostname are documented as ANSI-only.

.



Relevant Pages

  • Re: Mobile applications are unicode, why file explorer not showing UTF16 files?
    ... shows the characters alright already, no registry change made... ... only depend on the font. ... characters that aren't included in ordinary Japanese character sets, ...
    (microsoft.public.pocketpc.developer)
  • Re: Mobile applications are unicode, why file explorer not showing UTF16 files?
    ... Here is a partial example on a device where I used a Mikachan font. ... shows the characters alright already, no registry change made... ... characters that aren't included in ordinary Japanese character sets, ...
    (microsoft.public.pocketpc.developer)
  • The font "Arabic Transparent" (artro.ttf) is invalid
    ... This font, when installed, causes WEFT to crash. ... Error code Message Details ... I2100 Characters in a unicode range are present in the font, ...
    (microsoft.public.windowsxp.general)
  • Re: apostrophe with space in Word
    ... Helvetica as known in the computing world didn't get going until Apple included it in the Mac Operating system. ... Because it became so popular, Microsoft decide to add to their font collection, but because it was patented they decide to create their own version. ... So it may help to explain that the Unicode character set now defines about ... important to know the answer to the question "How many glyphs (characters) ...
    (microsoft.public.mac.office.word)
  • Re: Russian language support
    ... Actually in our previous test we didnt do language transition properly ... bytes, or if in Unicode, just a string of 2-byte values, each of which is ... it selects a font to use to display ... TTF fonts in Windows CE map Unicode characters into suitable glyphs. ...
    (microsoft.public.windowsce.platbuilder)