>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.