Welcome Guest, Not a member yet? Register   Sign In
Swedish characters on static page
#1

[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")Wink

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


Messages In This Thread
Swedish characters on static page - by El Forum - 09-08-2009, 03:20 PM
Swedish characters on static page - by El Forum - 09-08-2009, 03:54 PM
Swedish characters on static page - by El Forum - 09-08-2009, 04:26 PM
Swedish characters on static page - by El Forum - 09-09-2009, 03:30 PM
Swedish characters on static page - by El Forum - 05-31-2010, 10:33 AM
Swedish characters on static page - by El Forum - 05-31-2010, 12:14 PM
Swedish characters on static page - by El Forum - 05-31-2010, 01:37 PM
Swedish characters on static page - by El Forum - 05-31-2010, 03:08 PM
Swedish characters on static page - by El Forum - 06-01-2010, 04:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB