>>>Hi all, I have this problem :
>>>
>>>I set windows 10 with Russian language and loaded the russian keyboard
>>>
>>>I Can write a string in foxpro table and read it correctly on screen. No problem also with report.
>>>The problem is when I try to write this string in a text file. It appears with different characters and it is a problem as I send this file to an android device to be showed on a TV
>>>
>>>here is the Russian string : ОШИБКА ПЕЧАТИ БИЛЕТОВ
>>>
>>>and that's what appears in my text file : ÎØÈÁÊÀ ÏÅ×ÀÒÈ ÁÈËÅÒÎÂ
>>>
>>>I got the same now when I copied and pasted the string using the Italian setting keyboard. I succeed in pasting the right string by setting the keyboard as Russian
>>>
>>>What can I do to get rid of this problem ?
>>>
>>>thank you
>>>
>>>Alessio
>>
>>You should set Current Language for Non-Unicode programs to Russian too.
>
>Yes You are right
>I realized that despite of what I supposed, I haven't set Russian as windows main language
>Now it works
>
>But is there a way to leave my language as windows language and work with russian strings ?
>
>thank you
>Alessio
Alessio,
>>>The problem is when I try to write this string in a text file. It appears with different characters
To have the Russian chars of the text file displayed correctly you will need to
(1) Write a byte order mark at the beginning of the file
(2) Append the (Russian) chars to the file in the format that the BOM ( byte order mark ) indicates
Then windows ( eg notepad) will, display the chars correctly
eg
(1) Use the UTF-8 BOM - UTF-8 Byte Order Mark (BOM) EF BB BF
(2) Convert the strings to UTF-8
output = Strconv(input, 9, 1251, 1)
Gregory