I'm having a hard time getting the encoding of my mysql-database right. It's not possible to insert some Chinese characters correctly. I'm using xampp on windows and have the following table:
CREATE TABLE `Kanji` (
`ID` MEDIUMINT NOT NULL PRIMARY KEY AUTO_INCREMENT,
`Kanji` VARCHAR(40) NOT NULL UNIQUE
);
The following insert does not work:
INSERT INTO Kanji (Kanji)
VALUES ('');
When I check the contents of the table in phpMyAdmin, it just displays a '?'. Insertion of other Chinese characters works (e.g. '陸').
Here are the encoding-settings of my database:
character_set_client | utf8mb4
character_set_connection | utf8mb4
character_set_database | utf8mb4
character_set_filesystem | binary
character_set_results | utf8mb4
character_set_server | utf8mb4
character_set_system | utf8
collation_connection | utf8mb4_general_ci
collation_database | utf8mb4_general_ci
collation_server | utf8mb4_general_ci
Any ideas what's wrong?