First; On my development server (localhost; default XAMPP on OSX) everything works fine, though when I deploy the exact same code (and data) to the staging server (managed A
Can you check LC_LANG and other language variables? Apart from your problem :
I have problem with my cache files, between my hosting and local server (one debian, one ubuntu) I discovered the problem, when serializing \r causes problem. One system saves \r but ignores counting.
So I before serializing, remove all \r from the string. That removed!