Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is 'code page'?
Message
From
21/06/2005 07:33:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
21/06/2005 02:13:22
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01025049
Message ID:
01025091
Views:
19
>hi,
>i don't understand the 'code page' column in the project information windows (file| new| project| project information| file). If the record in the column show a number like '1252', what is that mean? the is the code page used for?
>Could you please tell me?
>Thank you.

Visual FoxPro normally uses single-byte character sets - each byte represents one character. The letter "A", for example, is represented by the value (in decimal) 65, "B" by 66, etc.

For some other data, like letters with accents, the same value can mean different things, depended on the selected "codepage". The system of using different codepages was introduced to accomodate different characters. But in any codepage, only 256 characters at once can be used.

I think that the best long-term solution is to switch to 2 bytes per character - for example, some Asian languages use more than 256 different characters. Here, too, there can be different codepages - but it seems that the "Unicode" system is becoming a sort of international standard. Unfortunately, VFP doesn't have native support for Unicode.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform