Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are you using TwilioX?
Message
From
05/12/2018 16:25:31
 
 
To
05/12/2018 16:02:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Application:
Desktop
Miscellaneous
Thread ID:
01664150
Message ID:
01664176
Views:
51
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform