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

About invalid utf-8 #15

Closed
jawira opened this issue Jul 19, 2018 · 1 comment
Closed

About invalid utf-8 #15

jawira opened this issue Jul 19, 2018 · 1 comment

Comments

@jawira
Copy link

jawira commented Jul 19, 2018

Hello, I was just passing by and I saw your problem Invalid UTF-8 data in your README file.

After having seen your source code, I think the bug comes to the fact that your are using utf8 instead of utf8mb4. The problem is that MYSQL's utf8 uses only 3 bytes, while it should be using 4 bytes.

In practice this means you should be using utf8mb4_unicode_ci and not utf8_unicode_ci.

Source: https://medium.com/@adamhooper/in-mysql-never-use-utf8-use-utf8mb4-11761243e434

I hope this helps you.

@nicjansma
Copy link
Owner

Great research @jawira! I've updated the README with a link to that article too.

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

No branches or pull requests

2 participants