Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Charset, encoding
Message
 
To
29/06/2011 05:30:52
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Application:
Desktop
Miscellaneous
Thread ID:
01516651
Message ID:
01516665
Views:
48
>Hi all,
>
>We receive VCF files that include special Charset encoding:
>
>
>FN;CHARSET=ISO-8859-1;ENCODING=QUOTED-PRINTABLE:G=E9rard La Boutique 
>
>
>We want to convert this string to :
>
>
>FN;Gérard La Boutique
>
>
>How to decode this string according to this Charset ?
lcFileContents=filetostr(lcFileNameWithPath)
lcFileContents=strtran(lcFileContents,[FN;CHARSET=ISO-8859-1;ENCODING=QUOTED-PRINTABLE:],[FN;])
** specific unescaping here
lcFileContents=strtran(lcFileContents,[=E9],[é])
strtofile(lcFileContents,lcFileNameWithPath)
Brandon Harker
Sebae Data Solutions
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform