[eluser]Unknown[/eluser]
Hello!
I have a fresh install of CI 1.7.1 and directly after install I tried to change the welcome message to a message in swedish. But I'm unable to get swedish characters to render correctly.
I've tried to
- Change default_charset in php.ini between UTF-8 and ISO-8889-1
- Change $config['charset'] between UTF-8 and ISO-8889-1
- Set header in the welcome controller with $this->output->set_header("Content-type: text/html; charset=ISO-8889-1");
Nothing seem to work. If I just create a PHP page with the code below it renders correctly.
<?
print "Hej. Det här meddelandet är på Svenska.";
?>
Here's what I get from CI:
Hej! Det h�r meddelandet �r p� Svenska.(default)
Hej! Det hŠr meddelandet Šr pŒ Svenska.($this->output->set_header("Content-type: text/html; charset=ISO-8889-1")
Correct result:
Hej. Det här meddelandet är på Svenska.
I'm on a mac, using CODA as my editor, and I'm using MAMP as my web server.
I can't understand why UTF-8 doesn't work.
Any ideas?
Best regard,
--Andreas