I use WAMP to run PHP code on localhost. The problem is that on my localhost I get utf8 errors like "lÃ¥n". On the live server I get "lån" like suspected.
What I've tried so far
utf8_general_ci
utf8_general_ci
ASCII/UTF-8, NO BOM
on both server and localhostheader('Content-Type: text/html; charset=utf-8');
ORM::configure('mysql:host=SECRET;dbname=SECRET;charset=utf8');
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
with no luckMore info
I just want the localhost and the server to show the same, without if statement workaround. I don't want utf8_decode on one place and not on the other.
Any ideas what I can try?
I don't know why but I had to put $html = mb_convert_encoding($html, 'HTML-ENTITIES', "UTF-8");
before @$dom->loadHTML($html);
that I have in my code.
I still don't know why it doesn't work without it when localhost and server settings are equal in every way.