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 09:50:41
 
 
À
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:
01648903
Vues:
52
*0.go to this link:
http://yousfi.over-blog.com/2015/01/unicode-text-embed-in-a-vfp-grid.html
i designed it for arabic texts(can be any unicode text).

1.prepare your russian texts (copied from web for ex.), open notepad and paste it...save mandatory as UTF-8 option.(one text by file to desserve the cursor/table memo field)
2.tweak the code above with your named txt files and replace:
     Local m.cFontName,m.cFontCharset,m.nRegionalIDType
	m.cFontName = 'Tahoma'           && unicode font
	m.cFontCharset = 204             && see getfont() in foxHelp (204 russe here) instead 178 for arabic
	m.nRegionalIDType=2              &&Specifies that nRegionalIdentifier is a FontCharSet value.
and its all.then run the adapted code i pointed.you obtain the demo as attached .
can use a textbox,an editbox,label...more easy that grid
note that data are readonly (cannot modify because vfp not unicode language)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform