Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Portugese (Brazil) Code page Problem
Message
De
03/08/2006 12:13:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
03/08/2006 09:27:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01142682
Message ID:
01142740
Vues:
11
>When I open a text file, or FILETOSTR() Portuguese text into VFP the accents are all converted into rubbish. For example: the phrase "micáceo com estrutura granitóide" is transformed into "micáceo com estrutura granitóide" by VFP. I have tried CPCONVERT(1252,850, ). That changes some of the symbols but doesn't get the original language back.
>
>I have also tried setting VFP to CP 850 but this hasn't worked either. I have tried switching Code Page support in Windows Language setting with no effect.

It looks like UTF-8... you may need some special handling, replacing the specific 2-character combinations with proper chr(nnn) using a dozen of StrTRan() passes.

In VFP9 you could use StrConv() with some of the newer parameters to convert utf-8 to Unicode then to 1252, but since I see you're on VFP6sp5, can't do that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform