Re: Codepage and Font

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Jan 15, 2:09 pm, Peter <Pe...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Sorry,

I forgot to tell you that this feature is running correctly on a XP RPO
computer for years now. But I got this problem on a XPe installation.
So my idea is that some Codepage setting is not complete in this Xpe
installation. But I have no idea what.
I heard something about the "Font Application Compatibility Macro". Could
that tool help ?

Peter

"Sean Liming (MVP)" wrote:
Wrong newsgroup. This NG is for XP Embedded, you might want to to XP general
or the VB newsgroups.

--
Regards,

Sean Liming
www.sjjmicro.com/www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
"Peter" <Pe...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:252242CA-28DC-4D7B-8A23-0A0B5551176D@xxxxxxxxxxxxxxxx
Some additional information to define the problem a bit more detailed.

When I write a cyrillic text to a ListBox, the cyrillic text appears, no
matter if I set a font or not.
When I write the same text to an EditBox without setting a font it apperas
also correctly.
But when I write the same text to a EditBox and specifying a font it
apperas
incorrectly.

What the hell is different when showing a text in an EditBox and in a
ListBox?
Is there any transforming included that might use the wrong codepage ?
Any idea ?

"Peter" wrote:

Hi,

we are using Visual Studio 6.0 with MFC6 on an XP computer. The app is
not
Unicode. OS is a german one and an english one.

I found a problem that in a combobox the strings are not shown properly
when
I switch over to cyrillic letters.
This is done by setting the regional settings parameter "language for non
Unicode dialogs" to russian and reboot.

In the list box part of the combobox the letters are shown correctly but
in
the edit box part of the combobox the selected string is shown wrong.
The Bytes that shows up the cyrillic letters are decoded not by the 1251
codepage but , I do not know why, by the 1252 codepage. So the string
itself
is correctly read out of the russian part of the stringtable or out of
the
list box part of the combobox. But the Bytes are linked to the wrong
characters.
The locale of the combobox o.k.

The problem might be that I create a font for that combobox: "arial",
FW_BOLD, .... This font seem to be shown correctly.
So when I use that font, the decoding goes wrong in the edit box.
But when I do not use that font with the combobox, the decoding goes
right
and the editbox shows up cyrillic letters.
But the one created font is used by the list box and the edit box, or
isn't
it.
How can a font does the right thing in the list box part and the wrong
thing
in the edit box part of a combobox?
My understanding is that when I create a font, the font has one
characterset
and not two different.
What regestry key can mess up this control ?

Any help to understand what is going on ?

Thanks
Peter

Funny, I think I'm fighting a similar problem. One of our internal
apps shows the micron (µ) and degree (º) characters as funny Korean
characters. The same program displays normally under XPPro and under
our previous build of XPe (with minimal components). Since I rebuilt
our XPe based on the XPPro Emulator script I get these strange
characters for micron and degree.
.



Relevant Pages

  • Re: Problem with Fonts continue
    ... The VB Control objects behave one way under XPP and another way under XPe. ... The same object (ie TextBox with Tahoma Font) may or may not show all ... >> Microsoft Sans Serif does not always work. ...
    (microsoft.public.windowsxp.embedded)
  • Re: Codepage and Font
    ... So my idea is that some Codepage setting is not complete in this Xpe ... I heard something about the "Font Application Compatibility Macro". ... the edit box part of the combobox the selected string is shown wrong. ... apps shows the micron and degree characters as funny Korean ...
    (microsoft.public.windowsxp.embedded)
  • Re: missing font
    ... export the FontSubstitutes key from XP Pro machine and import it at XPe runtime. ... app font problems. ...
    (microsoft.public.windowsxp.embedded)
  • Re: missing font
    ... export the FontSubstitutes key from XP Pro machine and import it at XPe runtime. ... app font problems. ...
    (microsoft.public.windowsxp.embedded)
  • 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)