Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert unicode clipboard text to windows-1251
Message
De
09/03/2017 16:35:34
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to convert unicode clipboard text to windows-1251
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01648885
Message ID:
01648885
Vues:
59
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform