Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unicode with xml
Message
From
06/07/2021 09:56:05
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Unicode with xml
Miscellaneous
Thread ID:
01681678
Message ID:
01681678
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform