I believe I found a bug in the http.urlencode() function. When converting the symbol for degrees (ALT+0176) to (%b0) an extra character (%c2) shows up.
message = "99°F"; server.log("Raw Message: "+message); local body = http.urlencode({Body=message}); server.log("URLEncoded: "+body);
Interesting. I’m using the agent to send data to a PHP script that dumps data into a MySQL database. This PHP script is in use by another device too, which is working fine. Data from the imp has an extra character in SQL, so I’m trying to figure out where it is coming from.
I’ve had the same. But pasting the degree sign from an other source fixed it. I suppose it like when you copy " from a pdf file some code editors don’t recognise it
Looks like your “other device” uses ISO-8859-1 encoding. The imp uses UTF-8 encoding. Your PHP script will have to convert one way or the other, so that the database sees only one consistent encoding.