Get the App
SLTechnology News&Howtos  ›  Development  › 

Why not use UTF-8 in MySQL

Shulou Source: shulou.com Published: 2022-06-03 07:04:47 11月15日 Update

This article mainly introduces "Why not to use UTF-8 in MySQL". In daily operation, I believe many people have doubts about why not to use UTF-8 in MySQL. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts of "Why not use UTF-8 in MySQL"! Next, please follow the editor to study!

Recently I came across a bug. I tried to save a UTF-8 string in a MariaDB encoded with "utf8" through Rails, and there was a strange error:

Incorrectstring value:'\ xF0\ x9F\ x98\ x83

Tags: Characters UTF-8 codes character sets bytes users questions developers space computers development support learning numbers data quantity articles networks speed help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB MySQL NVidia Shulou Tech Info