Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locale Code Page
Message
From
09/12/2000 11:08:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
09/12/2000 06:12:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00450930
Message ID:
00451159
Views:
21
>Hello, Barbara.
>
>I didn't want to meant this. I want to know if the user's computer have installed the Romanian Code Page. That's it: Windows 1250.
>
>If is not, the sedilla t (a specific Romanian letter) is replaced with what you see in your computer at CHR(254). And the string become unreadable.
>
>Thank you, anyway.
>
>Maybe a guru wants to jump in...

There's a key in the registry, called ACP. Since this three-letter acronym is probably rather hard to find, search for its neighbor, OEMCP (which should probably be 852 in your case). I've visited that location in the registry quite often, but never bothered to note the path to it - the OEMCP value occurs only once, so it's easy to find.

Short of driving through registry, from Fox you can use CpCurrent(). Without parameters, it gives you the value of Codepage setting in config.fpw; if there's none, it's equal to system codepage. CpCurrent(1) gives you the system codepage, and CpCurrent(2) gives you the DOS codepage.

The difference between Fox codepage and OS codepage is possible; you may set your config.fpw to a completely different codepage, and the tables, classes, forms, reports, menus and projects you create and the code you write will bear that mark. Still, if the OS has a different codepage, you may have trouble displaying your special characters: º (like in Timiºoara) may come up differently on your screen and reports. You need to have 1250 on your system for the fonts to come up right on the screen and in the reports, and, of course, the system fonts have to support the chosen codepage.

back to same old

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

Click here to load this message in the networking platform