+1 vote
in Gitea by
Why Are Emoji Broken On MySQL in Gitea?

1 Answer

0 votes
by

Unfortunately MySQL’s utf8 charset does not completely allow all possible UTF-8 characters, in particular Emoji. They created a new charset and collation called utf8mb4 that allows for emoji to be stored but tables which use the utf8 charset, and connections which use the utf8 charset will not use this.

Please run gitea convert, or run ALTER DATABASE database_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; for the database_name and run ALTER TABLE table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; for each table in the database.

You will also need to change the app.ini database charset to CHARSET=utf8mb4.

Related questions

+1 vote
asked Jan 13, 2022 in Gitea by DavidAnderson
+1 vote
+1 vote
asked Jan 12, 2022 in Gitea by DavidAnderson
...