Www.smsbao.com (SMS PO) has a text message upstream receive API.
The API description is:
Http://xxx.xxx.xxx/xxx?m=PHONE&c=CONTENT
HTTP://XXX.XXX.XXX/XXX: URL address to receive SMS
Phone: Sender's mobile number
Content: SMS contents, using UTF-8 URL ENCODE
Return ' 0 ' as receiving success, other content as error message
I use the UrlDecode () function to decode the text message content, but still garbled. How can i solve this problem? Thank you!
Report:
Mobile phone to send test content:
66666successful Success! @#
Content after decoding:
66666successfulæˆåšÿï¼@#
Reply content:
Www.smsbao.com (SMS PO) has a text message upstream receive API.
The API description is:
Http://xxx.xxx.xxx/xxx?m=PHONE&c=CONTENT
HTTP://XXX.XXX.XXX/XXX: URL address to receive SMS
Phone: Sender's mobile number
Content: SMS contents, using UTF-8 URL ENCODE
Return ' 0 ' as receiving success, other content as error message
I use the UrlDecode () function to decode the text message content, but still garbled. How can i solve this problem? Thank you!
Report:
Mobile phone to send test content:
66666successful Success! @#
Content after decoding:
66666successfulæˆåšÿï¼@#
iconv('gbk','utf-8//IGNORE',$content);
Use the UrlDecode and then turn the code.
Are you submitting to their API?
UrlDecode decoding?
Shouldn't it be UrlEncode code?