Some clients send the content-type header including the encoding.
Just as follows: “application/x-www-form-urlencoded; charset=utf-8”

I suggest a change in the parseIncomingParams function to work correctly with those clients:

[code]
if(isset($_SERVER[‘CONTENT_TYPE’])) {
$content_type = $_SERVER[‘CONTENT_TYPE’];
if(strpos($content_type, ‘;’) !== false) {
list($content_type) = explode(“;”, $content_type);
}
}
[/code]

Thank you Lorna for your work.