Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unicode with xml
Message
De
06/07/2021 09:56:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Unicode with xml
Divers
Thread ID:
01681678
Message ID:
01681678
Vues:
61
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform