Skip to content
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

Support optional charset parameter for full UTF-8 support (utf8mb4) #135

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

clue
Copy link
Contributor

@clue clue commented Jul 20, 2021

This changeset adds support for an optional charset parameter for full UTF-8 support (utf8mb4).

By default, the connection uses the utf8 charset encoding. Note that
MySQL's utf8 encoding (also known as utf8mb3) predates what is now
known as UTF-8 and for historical reasons doesn't support emojis and
other characters. If you want full UTF-8 support, you can pass the
charset encoding like this:

$factory->createLazyConnection('localhost?charset=utf8mb4');

Resolves / closes #133
Refs #131

@clue clue added this to the v0.5.6 milestone Jul 20, 2021
@clue clue requested a review from WyriHaximus July 20, 2021 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to ensure character set is set for database connection?
2 participants