使用Android时,PHP Excel生成失败

I have an issue with PHP POST values submitted by Android Devices. The issue does not happen on PC, nor on IPad or IPhone.

This is my code to fetch the values submitted via Form from my website.

$year =  mysqli_real_escape_string($connection, $_POST["year"]);

Here is a "snippet" of my PHP code for generating an Excel file which is sent to the browser for downloading. This code sets the Title of the Worksheet.

So this works perfectly:

$objSheet->setTitle("Report 2013");

But this does not work (when using android phone, it works in evertything else)

$objSheet->setTitle("Report " . " " . $year);

The variable $year somehow is null when i try to use it.

if i do a var_dump($year), or print_r($year), or echo $year the value "string(4) 2013" is there!! The $_POST variable is populated and the values are correct. I checked for strange headers in $_REQUEST global and the only difference i found were these headers:

 [langedit] => "" [lang] => "" [cprelogin] => no

What could possibly make my PHP variables go wild and crazy when processing a Android device HTTP request?