Quote from: BobRay at Nov 02, 2007, 03:37 PM
You could try the suggested "update" install of MODx. In Advanced mode, it lets you set the charset.
If that doesn’t work, I’d be inclined to try nightsignals’ idea of using PhpMyAdmin to "export" the database to a file. That creates a text file and you can look in it to see what the char encodings really are for the db and each table. It won’t affect the db itself.
If you’re daring (or desperate) enough, you can try editing the charsets in that file, emptying the db, and "importing" the file. Be sure to back everything up well before trying this.
Thanks for the help folks, very much appreciated
I have exported the database and I found out about a very cool terminal (iconv) command that modifies the charset of a file. This worked great, and with Bob’s suggestion I got the quickedit/modx to input the correct charset. I even made sure that the server headers are OK , which they were. Also by looking at the db file the chars are uncoded correctly (ö shows as ö not as ö®) so that is not the issue.
What is NOT wanting to work and I do not understand why, is that the Ditto sort order which is putting ’ö’ before ’a’. To better illustrate the issue, attached is a screen shot of the ditto sort (sorry I cant post the site yet) and one of the direct query sort.
My ditto call is (the facLastName is a text TV, but the problem also exists with the document vars as well):
[!Ditto? &parents=`12` &display=`all` &sortBy=`facLastName` &sortDir=`ASC` &tpl=`dtFaculty`!]
I wish I understood German so that I could lookk in the German forum, this must have happened to others before, I doubt that I am the first with this problem.
Anyway, the search for an answer continues. I will consider the install suggestion, a bit scarry to do a new install on a almost finished site...I am a bit chicken about this.
BTW here is the command:
iconv -f iso-8859-15 -t utf8 file-to-be-altered.sql > altered-file.sql;