Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unicode to _clipboard
Message
De
22/11/2020 15:30:40
 
 
À
22/11/2020 13:58:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01677281
Message ID:
01677282
Vues:
114
This message has been marked as the solution to the initial question of the thread.
J'aime (2)
>Sir, I have this Unicode string
>
>
tcUnicodeText=[اسلام علیکم]
>I want to copy this string to _cliptext
>

Tariq, in VFP you don't have Unicode strings that you assign to variables. What you have, in this case, is a string that is represented in ANSI Arabic (code page 1256).

Before passing the string to Sergey's function, you must STRCONV(yourString, 5, 1256, 1). Then, you'll have a UNICODE string.
tcUnicodeText=STRCONV([اسلام علیکم], 5, 1256, 1)
(the order of arguments should be string, 5, 1256, 1, but the RTL scripting changes the order of arguments - I expect you know how to write it down correctly).
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform