Skip to content

address utf8 / utf8mb4 issue on table sessions …#25

Open
atghw wants to merge 1 commit intogerdriesselmann:masterfrom
atghw:mysql-utf8mb4
Open

address utf8 / utf8mb4 issue on table sessions …#25
atghw wants to merge 1 commit intogerdriesselmann:masterfrom
atghw:mysql-utf8mb4

Conversation

@atghw
Copy link

@atghw atghw commented Sep 4, 2018

when session data with 4 byte UTF-8 characters is saved into mysql 3-byte ‚utf8‘ charset data field.
There are two options:

  • APP_ DB_USE_UTF8MB4_ON_UTF8 uses
    SET NAMES 'utf8mb4' COLLATE 'utf8mb4_general_ci‘
  • APP_DB_TR_UTF8_TO_UTF8MB4
    • has to be used in addition to APP_DB_USE_UTF8MB4_ON_UTF8
    • could auto-convert charset and collates to utf8mb4 - but is restricted yet to only the session table (due the 768 byte limit of indexes, which get exceeded on other system tables).
    • This option doesn’t help on a already created session table, you have to convert it manually.

when session data with 4 byte UTF-8 characters is saved into mysql 3-byte ‚utf8‘ charset data field.
There are two options:
- APP_ DB_USE_UTF8MB4_ON_UTF8 uses
SET NAMES 'utf8mb4' COLLATE 'utf8mb4_general_ci‘
- APP_DB_TR_UTF8_TO_UTF8MB4
  + has to be used in addition to APP_DB_USE_UTF8MB4_ON_UTF8
  + could auto-convert charset and collates to utf8mb4 - but is restricted yet to only the session table (due the 768 byte limit of indexes, which get exceeded on other system tables).
  + This option doesn’t help on a already created session table, you have to convert it manually.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants