What preferred MySQL collation?

Developer
Från United States
Medlem sedan feb. 2018

For LiteCart 2.x, what is the preferred MySQL collation type?

I noticed MySQL uses default utf8_swedish_ci, upon LiteCart installation, it gave warning message.

Checking MySQL database default character set... latin1 [Warning]. The database default charset is not 'utf8' and you might experience trouble with foreign characters. Try performing the following MySQL query: "ALTER DATABASE 'database-name' CHARACTER SET utf8 COLLATE utf8_swedish_ci;"

Is it ok to use uft8_swedish_ci and performing the above command ALTER DATABASE or shall the MySQL database set to different collation type prior to LiteCart installation?

Thank you for feedback.
Bob

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

If you use latin1 you may loose character byte data when storing special characters like €. The collation suitable depends on the languages you have. utf8_general_ci will order åä after a and ö after o while utf8_swedish_ci will order åäö after z.

Developer
Från United States
Medlem sedan feb. 2018

Thank you for clarification.

tim
Founder
Från Sweden
Medlem sedan maj 2013
tim

You can change collation after installation by going to Admin -> Languages -> Storage Encoding.

Den här tråden har stängts på grund av lång inaktivitet. Det går inte att posta inlägg till den.
Denna webbplats använder inga kakor och ingen spårningsteknik från tredje part . Vi tror att vi kan göra det bättre än andra och tänker verkligen på din integritet.