Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
French Data in VFP
Message
From
15/09/2011 10:26:04
 
 
To
14/09/2011 21:32:19
David Greene
Productive Solutions, LLC
California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01523575
Message ID:
01523613
Views:
68
You may try to convert the cvs file by using STRTOFILE(STRCONV(STRCONV(FILETOSTR([cvsfilename],11),2),[cvsfilename]) before appending (it will change from UTF-8 to DBC and then to SBC - of course, something may get lost in translation, but being from a western origin Windows 1252 character encoding will normally be enough).


>I have an app in which CSV files import client data. These CSV files have been in English but are now starting to arrive in French where Entreés shows up as Entrées. These CSV files are saved as UTF-8 by the client's system.
>
>I can't seem to find how to get the file to convert so that the French characters appear as they should. CPCURRENT(1) returns 1252 and CPCURRENT(2) returns 437. I've tried all the codepages in the line of code importing the file:
>
> APPEND FROM [csvfilename] TYPE CSV AS [nCodePage]
>
>but without success. I'm probably missing something stupidly basic, but can't seem to find how to get the file to translate properly. Any ideas?
>
>Many thanks,
>Dave
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform