I noticed that MODx is set to Unicode UTF-8, while the collation in the web-user related tables is to latin1_swedish_ci.
Could that be causing my recent WLPE issues (as well as WebSignup saying I didn’t enter in a username when one already existed)?
-
☆ A M B ☆
- 24,524 Posts
Make sure your connection charset in config.inc.php matches the actual database character set (latin1). Whether that will solve your problem though I don’t know.
-
☆ A M B ☆
- 24,524 Posts
Example: Suppose that column1 is defined as CHAR(5) CHARACTER SET latin2. If you do not say SET NAMES or SET CHARACTER SET, then for SELECT column1 FROM t, the server sends back all the values for column1 using the character set that the client specified when it connected. On the other hand, if you say SET NAMES ’latin1’ or SET CHARACTER SET latin1 before issuing the SELECT statement, the server converts the latin2 values to latin1 just before sending results back. Conversion may be lossy if there are characters that are not in both character sets.
So if the character sets don’t match, mysql may trash your data.
http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
The user comments are worth reading.
-
☆ A M B ☆
- 24,524 Posts
Converting an existing database to a different charset will most likely break your content.
You can probably reset the database via the phpMyAdmin collation setting, but you’d best make sure you know what is going to happen before you do.
http://dev.mysql.com/doc/refman/4.1/en/charset.html
http://yoonkit.blogspot.com/2006/03/mysql-charset-from-latin1-to-utf8.html
I’ve attached an image of the charset information from the phpMyAdmin page for the database at the "testing" website, which has the same issues as Symphonic Heaven. All of the tables are set to latin1_swedish_ci, btw. As of right now on that testing website, MODx is set to UTF-8.
I assume by changing the latin1 -> utf8, this would fix my issue, correct? Now, two things. I can easily change over the charset collation option on the "homepage" for phpMyAdmin, but what SQL command should I use to change the Collation option under Table options? And I see a bunch of options --- should I use utf8_swedish_ci, or utf8_unicode_ci?
I’ll need to do this myself, since the database person at Gamespy is *very* overworked ATM. And since this is a "testing" site, I can easily scrap and try something else if this doesn’t work.