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

Change default charset encoding to utf8mb4 for full UTF-8 support #165

Merged
merged 1 commit into from
Oct 29, 2022

Conversation

clue
Copy link
Contributor

@clue clue commented Oct 18, 2022

This changeset updates the MySQL client to use utf8mb4 as the default charset encoding for full UTF-8 support instead of the legacy utf8mb3 charset encoding that was previously used for BC reasons. The utf8mb4 encoding is available as of MySQL 5.5.3 (released early 2010) and is what most applications would want to use nowadays. For legacy reasons you can still change this to use a different ASCII-compatible charset encoding like this:

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

Builds on top of #135

@clue clue added this to the v0.6.0 milestone Oct 18, 2022
@clue clue requested a review from WyriHaximus October 18, 2022 07:31
@WyriHaximus WyriHaximus merged commit 789124f into friends-of-reactphp:0.6.x Oct 29, 2022
@clue clue deleted the utf8mb4 branch October 29, 2022 18:25
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.

3 participants