Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to convert unicode clipboard text to windows-1251
Message
De
10/03/2017 04:56:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
10/03/2017 01:32:59
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:
01648896
Vues:
47
>Hi!
>
>>?strconv(strconv(_cliptext,11,1251,1),2)
>
>This outputs question marks only.
>
>Windows system locale is Baltic Windows, codepage 1257 .
>Maybe _cliptext content is corrupted and it already contains only question marks.
>
>I found working sample in http://www.news2news.com/vfp/?example=316&function=311
>Is it OK to use it?
>
>Can uconv in this code replaced with built-in strconv ?

The above line worked fine for UTF-8 to cyrillic. And my system locale is 1250, not 1251, so I think it doesn't influence things.

There's also the matter of the format of the text you're starting with. Is it UTF-8 (or even 16), is it just Unicode, is it Koi-8R or something else.

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