Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
STRCONV Is VFP Unicode UTF-16?
Message
De
21/09/2011 08:56:01
 
 
À
21/09/2011 08:07:35
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01524122
Message ID:
01524126
Vues:
99
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>A short question concerning the STRCONV function and the UNICODE mentioned throughout the VFP9 help file UTF-16?
>
>Why am I looking for this? The new version of quickpdf nows requires feeding the beast with UTF-16 strings. I do not want to bump into a complex issue before considering an update.
>
>Thanks for any input:)


Depends on how you feed the beast

(1) If you can pass a 'normal' string - my understanding is that the string will be converted to UTF-16 for you, ie from codepage cpcurrent(1) to UTF-16

(2) If you have to explicitly pass UTF16

(a) if you stay within cpcurrent() - you can use strconv() I believe

(b) otherwise you can use StringToUTF16(@utf16Out, stringIn, codepageIn) where you can specify a codepage
You'll find the function in message#1523724
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform