Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code Page translation not working!!!!
Message
 
To
19/08/2003 09:41:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00821382
Message ID:
00821697
Views:
22
>I really don't understand how to make this work.
>I am using some characters in .PRG files which I don't want to translate when I change code page in Windows (in Regional and Language Options).
>
>I have tried CPCONVERT() and it doesn't convert at all characters, SET NOCPTRANS doesn't prevent translating from changing into code page, COMPILE my.prg AS 1252 also doesn't work...
>
>Can someone help me about this?
>
>Is it possible to prevent translating characters into code page in .PRG files in VFP 7.0?

Boban,

CPCONVERT is intended to be used with tables. When you save a PRG as 1252, all of the code gets saved as 1252. You have no option to avoid the code page translation of a program.

If you absolutely need the special characters you're speaking about, save them into a table and retrieve them from your program.

José
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform