Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an accented character
Message
From
25/02/2018 07:37:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/02/2018 08:40:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01658323
Message ID:
01658435
Views:
183
>Dragen,
>according to me the chri value will show the asci from the font.
>If a font contains the image of a s with accentgrave than it will have a certain chri value.
>The codepage is not involved.
>Select font Wingdings and activate the chr value of 81 it will show you an airplane and not Q which is the value of 81 in font Arial

Quite so, for non-unicode fonts. Which regularly came with windowses up to W2000 or thereabouts. Can't say I remember quite clearly about XP, but since NT4 at least most of the standard fonts are unicode. Which means that the characters up to 255 are western. Characters from other codepages take positions in the rest of the address space, which in unicode is 16-bit. The codepage gets involved when you have a non-unicode app, so the OS has to map a certain subset of that 16-bit space into 8-bit. Depending on that mapping (aka codepage for non-unicode), chr(156) will be ś in 1250, oe diphtong in 1252 and turkish, empty in greek and baltic, њ in cyrillic etc etc. In actuality, the unicode for њ is not 156, it's 0x045A and for ś it's 0x015B.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform