Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Latinic and cyrilic letters in file
Message
De
01/12/2021 01:13:36
 
 
À
30/11/2021 07:58:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01682865
Message ID:
01682876
Vues:
70
>I need to write (among others data) from form method with fputs rows in file with latinic and cyrilic letters in same row, for example (utf8 of course)
>
>THIS IS SAMPLE ŠĐČĆĆ ШЂЧЋЖ
>


vfp6 :-)



>I tried but in file occurs ???? for cyrilic letters and some strange letters in output file.
>
>Can you help me with this problem?

For latinic parts,
strconv(strconv("tpšđčć",1),9,1250,1)

for cyrillic parts (assuming they were in codepage 1251),
strconv(strconv("ђшпњ",1),9,1251,1)

You can't have both of 1250 and 1251 in the same field in a table, or same control onscreen. But if these are coming from different sources, this is a way to output them as UTF-8.
Before writing anything into the output file, prefix it with a proper BoM (byte order mark):
FWRITE(nHandle, 0hEFBBBF)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform