Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cyrillic to app.ini as Unicode
Message
From
23/01/2013 06:26:24
 
 
To
23/01/2013 05:16:10
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01563723
Message ID:
01563739
Views:
70
>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 Пера Перић
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform