Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Latinic and cyrilic letters in file
Message
 
To
01/12/2021 01:13:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01682865
Message ID:
01682878
Views:
47
Hi,

https://www.sql.ru/forum/581278/kak-prochitat-utf-8-v-vfp6

MartinaJ

>>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)
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Reply
Map
View

Click here to load this message in the networking platform