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 17:21:45
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
09/03/2017 16:35:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01648885
Message ID:
01648887
Vues:
62
>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

?strconv(strconv(_cliptext,11,1251,1),2)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform