Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert from ASCII to UTF-8
Message
 
 
À
21/08/2009 12:10:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01419559
Message ID:
01419561
Vues:
98
This message has been marked as the solution to the initial question of the thread.
STRCONV(,10)
>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.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform