Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert unicode clipboard text to windows-1251
Message
From
09/03/2017 16:35:34
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to convert unicode clipboard text to windows-1251
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01648885
Message ID:
01648885
Views:
60
Visual FoxPro 9 grid control text field contains russian characters. Font charset is set to Cyrillic.

If russian text is pasted from web page to this field, ??? characters appear instead of russian letters.

I tried

CLEAR
_screen.FontCharSet= 204

cContents = STRCONV(_cliptext,9,1251,1)
?ccontents
cContents = STRCONV(_cliptext,6,1251,1)
?ccontents
cContents = STRCONV(cContents,9,1251,1)
?ccontents

FOR i=1 TO 15
?i,STRCONV(_cliptext,i)
ENDFOR

But russian characters do not appear in any line.
For example, Аналитика in clipboard produces attached output

How to convert russian clipboard data to windows 1251 encoding ?

Can some Foxpro or windows API function used for this ?

Posted also in http://stackoverflow.com/questions/42705818/how-to-convert-cyrillic-clipboard-text-to-windows-1257-encoding
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform