Special characters like åäö doesn't work in WYSIWYG-editor.

Permalink
Have anyone else noticed that when you use characters like åäö, like we do in Sweden, get scrambled when you add a content block after upgrading to latest C5.6 ?

See attached images for a more graphic explanation.
First image is the characters i type in.
Second image is the result when you save.

I have only had this problem with one site. Everywhere else it works fine. And with this site it has worked before but after the upgrade to latest 5.6 this happens. Any ideas?

*EDIT I had the site on a dev-server and that worked fine. I then moved it to a new server and this is when the problems occurred. After upgrading on the new server. The dev-server still works fine even after upgrade.

*EDIT 2 Added another picture of the treeview. There is errors in the characters here to.
I have checked the database and the collation and all is set to utf8_general_ci even on table and row level.

3 Attachments

 
MrLindau replied on at Permalink Reply
I've noticed another peculiar thing, when I publish those scrambled characters they read as åäö again. But when i go in to edit mode and edit that block it scrambles again.
Hypocrite replied on at Permalink Best Answer Reply
Hypocrite
My first guess is that your server settings and concrete5 settings are in conflict.

Concrete5 uses UTF-8 as the default charset and your server is probably using something like ISO-8859 as the default charset for PHP.

You could try editing the .htaccess in the root of your concrete5 installation and changing the default charset if you cannot edit your php.ini.

See this thread for an example .htaccess:
http://stackoverflow.com/questions/6987929/preparing-php-applicatio...
MrLindau replied on at Permalink Reply
Wow! Thank You... Thank You... Thank You! =)

Just copied and paste those lines in and everything works =)

For future reference here are the lines of code I added to the .htaccess-file:
########################################
# Set up UTF-8 encoding
########################################
AddDefaultCharset UTF-8
AddCharset UTF-8 .php
php_value default_charset "UTF-8"
php_value iconv.input_encoding "UTF-8"
php_value iconv.internal_encoding "UTF-8"
php_value iconv.output_encoding "UTF-8"
php_value mbstring.internal_encoding UTF-8
php_value mbstring.http_output UTF-8
php_value mbstring.encoding_translation On
php_value mbstring.func_overload 6