Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert from ASCII to UTF-8
Message
De
21/08/2009 12:10:51
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Convert from ASCII to UTF-8
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01419559
Message ID:
01419559
Vues:
176
I am reading in a file that has double-byte characters and parsing it. I then write the file to output. I am using FOPEN, FREAD, FPUTS, and FCLOSE to open, read and parse the file and then close. After closing I use the following command:
=STRTOFILE(FILETOSTR(lcFileName),lcFileName,4)
This encodes the file as UTF-8. However, the line contents are not being converted to UTF-8. This only marks the file as UTF-8. How do I convert each line and save into UTF-8 format? The FREAD and FPUTS commands seem to only work with ASCII.

Thanks.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform