I'm having a very strange error.
I have verified that both my strings are UTF-8 (Checked through mb_check_encoding and mb_detect_encoding) but when I attempt to use utf8_decode on the string, it will return garbage characters to me. In this case, I actually do not need to use utf8_decode and the string will be normal.
The difficulty is that I have customers using UTF-8 databases that I pull strings from and I use utf8_decode to ungarble the strings for PHP. If I don't the space characters will be replaced with à . They share the same code to generate the string, but for some reason when I generate it for this other customer, the strings come out all wrong.
Is there a way for me to verify that I will need to use utf8_decode other than the fact that the string is utf 8?
Some Examples:
Using utf8_decode for customer 1:
?0,107�per�km
Without utf8_decode for customer 1:
€0,107 per km
Using utf8_decode for customer 2:
$7.00 per km
Without utf8_decode for customer 2:
$7.00 per km
Thanks guys!