-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use unicode rather than general encoding #9246
Conversation
Ah, just opened #9245 for the same issue. My code is already ok. Question: What about unit tests? I found "utf8_general_ci" in following files: tests\unit\suites\database\driver\mysql\JDatabaseDriverMysqlTest.php: 'utf8_general_ci', This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9246. |
And if we use yours, not forget to change the create table statement I have added to the installer's database model, and this one is still created as utf8_ ..., not as utf8mb4, same as my new update sql, see my files in PR #9245 |
We'll use yours |
And what shall we do with the unit tests? This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9246. |
Does the database used for those support utf8mb4? This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9246. |
We use SQLite for the unit tests. This Drupal issue suggests that it is supported https://www.drupal.org/node/1314214 |
Does it mean we should change the unit tests, too, to either utf8mb4_unicode_ci? And if so, in this or in a new PR? Or leave them untouched because they just check what they created before themselves, e.g. test tables, so what Joomla! Core tables normally have is not relevant for them? I did not look into them yet and also not know anything about Joomla!'s unit tests. |
The MySQL servers on Jenkins and Travis should be running MySQL 5.5 so for Presumably, the tests should validate both utf8 and utf8mb4 configurations On Sunday, February 28, 2016, Richard Fath notifications@github.com wrote:
|
The problem is the filter runs based on whether the database supports utf8mb4. Not whether they are actually set up with that configuration or not... :( |
Oh my god ... gets too complicated for me ... have no knowledge about unit testing of Joomla! ... I think I am out here ... all I hope is that our recent fixes for unicode collations and utf8mb4 not break any unit tests. |
Summary of Changes
This changes the utf8mb4 general encoding to uft8mb4 unicode encoding - it is generally encouraged over general encoding because it sorts better in foreign languages (see http://stackoverflow.com/a/766996 for example)
Testing Instructions
This shouldn't affect either installation or upgrading from a previous version of Joomla.