Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Charset, encoding
Message
 
À
29/06/2011 05:30:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Application:
Desktop
Divers
Thread ID:
01516651
Message ID:
01516665
Vues:
49
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform