Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are you using TwilioX?
Message
De
05/12/2018 16:25:31
 
 
À
05/12/2018 16:02:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Divers
Thread ID:
01664150
Message ID:
01664176
Vues:
52
>>>If you are perhaps you could help me with the following problem that I have.
>>>
>>>I can't send characters that have accents. àÀéÉ
>>>
>>>I contacted the author and he told me that that there is nothing that could explain that behavior.
>>
>>Denis,
>>
>>Did you try to convert the text of the message to Unicode by STRCONV(STRCONV(m.MessageBody, 1), 5)?
>
>Thanks for the suggestion Antonio.
>
>I just tried it. After the STRCONV I do a messagebox to see the result. For example I did the STRCONV like you suggested. I did it with the string "éÉàA". The messagebox only showed "é" as the result on the conversion. Is this normal? Is this because there are special characters that can't be viewed with messagebox?

If I'm not mistaken, the VFP messagebox() function will stop displaying characters once it hits a CHR(0) (i.e. uses C convention for string terminator).
When you convert "Hello" to Unicode, the result would be the equivalent of:
"H"+CHR(0)+"e"+CHR(0)+"l"+CHR(0)+"l"+CHR(0)+"o"+CHR(0)
If you had passed this string to message(), only the "H" will show
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform