Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cyrillic to app.ini as Unicode
Message
De
23/01/2013 07:09:19
 
 
À
23/01/2013 06:26:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01563723
Message ID:
01563741
Vues:
59
>ooops, wrong ....
>CPCURRENT() ... 1250
>CPCURRENT(1) .... 1250


>LOCAL c
>c=strconv(filetostr("app.ini"),6, 1251,1)
>alines(aR, c)
>...
****************
>the problem is the opposite direction: from the VFP textbox (fontcharset=204) to App.ini, so that when I open the app.ini with notepad, see the Cyrillic alphabet, in certain sections.

>In that case, try

>xx = rtrim(thisform.text1.Value) && or for this example xx = strconv('CFE5F0E020CFE5F0E89E', 16)
>yy = strconv(m.xx, 5, 1251, 1)
>=strtofile(m.yy, 'd:\tmp\1.txt', 2) && with BOM marker
>I can open the file with notepad and it displays the chars Пера Перић

Congratulations to Greg.
I can open the file with notepad and it displays the chars Пера Перић. That is ok.

I just do not need to write to d:\ temp\1.txt, but in App.ini
section Firma
Director = Пера Перић
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform