address utf8 / utf8mb4 issue on table sessions …#25
Open
atghw wants to merge 1 commit intogerdriesselmann:masterfrom
Open
address utf8 / utf8mb4 issue on table sessions …#25atghw wants to merge 1 commit intogerdriesselmann:masterfrom
atghw wants to merge 1 commit intogerdriesselmann:masterfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
when session data with 4 byte UTF-8 characters is saved into mysql 3-byte ‚utf8‘ charset data field.
There are two options:
SET NAMES 'utf8mb4' COLLATE 'utf8mb4_general_ci‘