Hello,
we have a MODx installation, and we use no WYSIWYG-editor, just a plain text-field for text-entry. When i enter words with UTF8-karakters, like f.e.:
één
the word seems to be encoded in some kind of way before it is entered into the mySQL database. The result is that the output is not correct. When i paste the text directly into the database-content using PHPmyAdmin everything works correctly.
Our config:
mySQL5 with latin1-swedish-ci collation on all modx-tables
mySQL default character set is : UTF-8 Unicode (utf8)
MODx character encoding is set default to UTF8
any ideas what’s happening?
Olaf
Do you have an example URL?
Make sure there’s an explicit header in the PHP like:
header("Content-type: text/html; charset=utf-8");
because the default charset in PHP is still ISO-8859-1, iirc.
will take a look into it, tnx!
tnx...the info in the link Ganeshxl provided solved our problem. I installed IconV.dll in PHP, and changed the AMFPHP gatewaysettings to iconv and UTF8 for reading and writing....works like a charm now!
Olaf