A remote SMS service (I cannot influence) POSTs text messages to a PHP-controller (of a Symfony2 app if that matters) as Content-Type: application/x-www-form-urlencoded
PHP cannot decode special characters correctly.
a tcpdump shows (abbreviated - only showing the data in question )
User-Agent: smsd (libwww-perl/5.805)
Content-Type: application/x-www-form-urlencoded
Content-Length: 123
data=ae+%E4+ue+%FC+oe+%F6+sz+%DF
The original data was
ae ä ue ü oe ö sz ß
and the PHP $_POST holds (serialized)
;s:4:"data";s:19:"ae ###e ###### sz ##;
I suppose, it is the missing charset=UTF-8, that causes the troubles.
If anyone has an idea how to overcome this, I'd appreciate your answer. Thanx.