I’m confused; you told me the database had a collation of utf8_unicode_ci and the tables had utf8_general_ci. Is this or is this not the case?
There are two layers of settings involved here, the database container itself (which contains the tables). It has one charset and collation setting. Each table then has columns, and each text column also has a collation settings, which should match the collation of the database container. Do they match, or are they different?
-
- 616 Posts
I think they match but I’m not really sure what and where to check
-
- 616 Posts
o.k.
these are my main settings:
Server version: 5.0.37-community-nt
Protocol version: 10
Server: localhost via TCP/IP
User: admin@localhost
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_general_ci
the modx database collation is set to utf8)general_ci as well as all the tables in the database
The collation is a subset of the charset. The first part of the collation will always match the charset.
I was trying to make sure the server, database, and actual table settings were consistent to rule out any internal issues in the MySQL server. MODx will always use the actual collation and charset of the database it is connecting to (see SET CHARACTER SET vs. SET NAMES), regardless if you have specified the connection charset value properly, so make sure the database matches.
As for your problem mmjaeger, I’m not sure, but sounds like you may have migrated this data using a non-utf8 format or done some other operation which prevented the data from being stored into the database properly. If everything checks out regarding your charset/collation settings, only thing left to do is fix the data.