txt3rob — 2013-12-04T04:51:54-05:00 — #1
I have a script which sends a post request to a sms gateway api that requires it to be urlencoded
when i do the following:
$message = "Hello \r\
the sms comes out "hello rn"
would this be a server side issue or would there be another solution?
i did try using %13%10 but they came out in the sms as well
droopsnoot — 2013-12-04T07:27:52-05:00 — #2
Keep in mind that url-encoding uses the two-digit hexadecimal representation, so in your case you would use %0D%0A to represent ASCII 13 and 10 respectively.
txt3rob — 2013-12-04T13:52:44-05:00 — #3
cheers will give this a go