Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Portugese (Brazil) Code page Problem
Message
From
03/08/2006 12:13:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
03/08/2006 09:27:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01142682
Message ID:
01142740
Views:
19
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform