Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unicode with xml
Message
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
01681678
Message ID:
01681698
Views:
59
If you print the string **before** you send it, does it display properly? In other words are you in the right code page to create the message in your FoxPro code.
if so you should be able to map the message directly into the data sent and it should be converted into Unicode via the COM interaction. That is assuming the value you use in `.send()` is expected to be a string.

If it's not (and I think it might not be because you can post binary data as well as a string buffer) then the data expected might be binary. If binary is expected then Martina's suggestion of using `STRCONV()` is the right way to ensure the data is encoded properly and you can use `CAST()` to cast to blob after the conversion.

+++ Rick ---

>Sir I am using these codes
>
>
>curl="https://telenorcsms.com.pk:27677/corporate_sms2/api/sendsms.jsp?"
>	session_id=cdata
>	ccellno='923456857063'
>	cuserid='923001509602'
>	cpass='apxamcsamcs@aaxx33d455'
>	cmask='AHCS'
>	clang="English"
>	cunicode="true"
>	cmessage="اسلام علیکم"
>		
>	
>winhttpreq = Createobject("WinHttp.WinHttpRequest.5.1")
>postdata = "session_id=" + cdata;
>	+ "&msisdn=" + cuserid;
>	+ "&password=" + cpass;
>	+ "&text=" + cmessage;
>	+ "&to=" + ccellno;
>	+ "&mask=" +cmask;
>	+ "&encoding=" + 'utf-8';
>       + "&unicode=" + cunicode
>
>	winhttpreq.open("POST",curl,.f.)
>	winhttpreq.setrequestheader("Content-Type", "application/x-www-form-urlencoded")
>	winhttpreq.send(postdata)
>	xmlstr=winhttpreq.responsetext
>
>
>
>The message is delivered in garbage characters like اÙ?Ø´Ù?ا instead of real text اسلام علیکم
>
>How is it possible to send unicode text (URDU or Arabic)
>
>Please
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Reply
Map
View

Click here to load this message in the networking platform