I have one ec2 server with php 5.3 and with 2 virtual hosts: 1 dev and 1 live.
On the dev if someone uploads a file with a bad UTF-8 it ignores the error and it just doesn't convert the variable.
On the live host it throws this error and stops the php script:
Message: json_encode(): Invalid UTF-8 sequence in argument.
Any reason I am getting mixed results on the same server?