Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fonts, codepage & NT
Message
From
15/07/1999 16:43:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00240258
Message ID:
00241994
Views:
20
>>The trouble with NT is that it never gave us a chance to choose the default system codepage, and searching through the system help and some NT bible on the codepage issue led me nowhere - it's even more cryptic and misleading than Office help. I really don't dare messing with NT registry - it's the server for the whole company, and the app is a wee phonebook and workorder log, installed there for the convenience of our secretary, so the app itself is not so important.
>>
>>Still, I feel I'll have more of this problem as more NT machines will come my way: how do you get VFP apps to display localized character sets on a NT (SBS in my case) machine?
>
>Have you tried using the Regional Settings Applet from Control Panel?

Didn't look at that, because we don't use things like "insert today's date in my language", or display ammounts in currency format. I may try that tomorrow (I write this at home). Though, all these settings are already done within VFP, and everything is set to European already (date, time, separator, decimal point), and VFP's codepage (at least the one it internally uses).

>I'd assume that the behavior of VFP's runtime uses the setting controlled from there as long as you issue SET SYSFORMATS ON. The locale stuff is user-specific, and the settings selected for one user should have no effect on the file system as shared, or on Services which don't run in the context of the currently logged-in user. Just make sure that the secretary isn't logging in as Administrator to access her phone book...

She's got the powers of Administrator... I mean, if she asks for something, nobody has the heart to refuse :)

>Under NT, the related registry settings are scoped to the logged-in user, and the locale-specific settings that get frobbed with are under HKEY_USERS\SID (the value in use for the current HKEY_CURRENT_USER) so it should be marginally harmless and easy to fix if the value has negative effects.

Now this is what I needed. I'll email this to my office (far better than playing frizbee network with floppies) and try it tomorrow.

>The VFP6 docs imply that if SYSFORMATS has been set to ON in the default datasession, the subsequently-created datasessions inherit the ON value, and there's a specific reference to putting the line:
>
>SYSFORMATS = ON
>
>in CONFIG.FPW; the codepage isn't one of the SET values referenced in the doc, but it seems worth a try at least.

The codepage can be set in .FPW only. You can set it to AUTO, and it assumes the codepage of Windows, or you can force it to any codepage you like. This was done back in FPD because the mechanism of codepage setting in DOS5.0 (which was still around at the time) was not the best one, and it ate the precious 640K zone, so many third party vendors have supplied their own drivers for codepage, and they were not sure these would be always detected from Fox, so they allowed this manual override.

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