|
| [WD20]Sending non-english character in httprequest |
| Iniciado por guest, 24,jun. 2016 03:59 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 24,junio 2016 - 03:59 |
HEllo Gang !! This is my code ===================== sMyjson is UNICODE string = EDT_NoName1..Value
requesturl is UNICODE string = "http://localhost/npdict/index.php/test/getparam"
sMyreceivevalue is string HTTPCreateForm("FORM")
HTTPAddParameter("FORM","link",sMyjson) HTTPAddParameter("FORM","table","word_list")
IF HTTPSendForm("FORM",requesturl,httpPost,"","","application/x-www-form-urlencoded; charset=UTF-8") = True THEN sMyreceivevalue = HTMLToText(HTTPGetResult(httpResult)) Info("Request OK", HTTPGetResult(httpHeader),sMyreceivevalue) END =======================================
The Web page is written in php and saves data in mysql database
When I send english character, it is okey. the same english character is saved in the database. But When I send Non english character (eg: ????????) every character is changed in some english characters like 0 > . A . > 0
. What is my problem here ?? Any Idea ?? Thanks ! |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,junio 2016 - 13:14 |
Hi
AFAIK, transport of data on the web is ALWAYS in ansi and in a very specific charset...
So you should ALWAYS do a 'URLEncode' of your URL and parameters before sending. The other side will do the URLDecode and get what you originally sent
Best regards |
| |
| |
| | | |
|
| | | | |
| | |
|