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
ASCII/UTF-8, NO BOM
header('Content-Type: text/html; charset=utf-8');
ORM::configure('driver_options', array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));
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.