Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is 'code page'?
Message
De
21/06/2005 07:33:53
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
21/06/2005 02:13:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01025049
Message ID:
01025091
Vues:
18
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform