Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Charset, encoding
Message
From
29/06/2011 10:59:18
 
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:
01516696
Views:
49
Thanks Brandon,

This would require us to write a charset converter (a simple one). Before we do this, I wanted to know if a native function (a la STRCONV()) was available. An external tool would be suitable also, but if we can avoid it...

>>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)
>
>>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)
>
Gensoft Sàrl
Christian Carron
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform