Linked Questions
71 questions linked to/from Change MySQL default character set to UTF-8 in my.cnf?
2 votes
1 answer
411 views
Spring doesn't display hebrew on UTF-8 [duplicate]
I'm new to spring, and I'm trying to print a list. When the page loads, the text doesn't display correctly. When I replace the return string from the jsp view name with one of the entries and adding ...
0 votes
0 answers
155 views
Why are Odia Characters inserted/displayed as junk characters in my MySQL database? [duplicate]
Update: SOLVED I just inserted charset=utfmb4 in my connection string and it worked. $pdo = new PDO("mysql:host=localhost;dbname=db_name;charset=utf8mb4", "db_user", "db_pass&...
0 votes
2 answers
129 views
MySQL Character Encoding [duplicate]
I have a form from which i am taking user details.I am seeing that when the user enters character like ' there is an entry in the table but the character is entered as ? in the DB. For Example : If a ...
1358 votes
9 answers
678k views
What's the difference between utf8_general_ci and utf8_unicode_ci?
Between utf8_general_ci and utf8_unicode_ci, are there any differences in terms of performance?
550 votes
20 answers
671k views
How to convert an entire MySQL database characterset and collation to UTF-8?
How can I convert entire MySQL database character-set to UTF-8 and collation to UTF-8?
306 votes
22 answers
364k views
MySQL Server has gone away when importing large sql file [duplicate]
I tried to import a large sql file through phpMyAdmin...But it kept showing error 'MySql server has gone away' What to do?
133 votes
15 answers
321k views
How to make MySQL handle UTF-8 properly
One of the responses to a question I asked yesterday suggested that I should make sure my database can handle UTF-8 characters correctly. How I can do this with MySQL?
81 votes
13 answers
194k views
PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers
I'm trying to connect to a MySQL database from Symfony 3 application. But when trying to create MySQL schema from a Symfony console command I get this error: PDO::__construct(): Server sent charset (...
36 votes
2 answers
91k views
How to set character_set_database and collation_database to utf8 in my.ini?
I've googled a lot about this problem. To sum up, this is what my my.ini looks like: sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES [client] database = abcdef user = root password = XXXXXX ...
16 votes
3 answers
36k views
How to set the default character-set?
I want to create a new db in mysql. I set utf8 as the default-character-set, but when I attempted to restart the db, mysql failed to restart and posted the following prompt: Trying to start the ...
25 votes
1 answer
31k views
Using SQLAlchemy and pymysql, how can I set the connection to utilize utf8mb4?
I discovered (the hard way) that MySQL's UTF8 character set is only 3 bytes. A bit of research shows I can fix this by changing the tables to utilize the utf8mb4 collation and get the full 4 bytes UTF ...
22 votes
7 answers
22k views
Cannot store emoji in database
THE SITUATION: Sorry in advance if this question has already been asked, but the solutions aren't working for me. No matter what I try, I cannot store emoji in my database. They are saved as ????. ...
6 votes
3 answers
8k views
mysql_fetch_array returns non-Unicode text
I've made a simple PHP page to get the POST data and fetch a sql query then print the result. I'm using the mysql_fetch_array function. The code works great but the response is a non-Unicode text, ...
14 votes
1 answer
62k views
Setting correct innodb_log_file_size in mysql
We ran an alter table today today that took down the DB. We failed over to the slave, and in the post-mortem, we discovered this in the mysql error.log InnoDB: ERROR: the age of the last checkpoint ...
16 votes
3 answers
1k views
In MySQL, what do I put inside my.cnf so that all tables are UTF-8 that works with emojis by default?
I'd like every table and database (to be created) to be utf-8 that works with emojis. I understand that there are a few variables I need to define inside my.cnf: init_connect='SET ...