You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using 4 byte unicode, like emojis, in an issue (subject, content, ..) gitea will return a 500. This is because the database was created as utf8 by gitea and gitea is using the utf8 namespace when connecting to it.
This issue can be solved by
altering all tables/columns from utf8 to utf8mb4
# quick'n dirty, we don't need alter tables here
mysqldump gitea | sed 's/\butf8\b/utf8mb4/g'> gitea_utf8mb4.sql
mysql gitea < gitea_utf8mb4.sql
and
patching gitea to use utf8mb4 when connecting to the db:
Unfortunately, I'm not familiar enough with the gitea source code regarding the database creation (I'm pretty sure it's somewhat related to the types/struct in models/*.go, though), so sorry for not providing a patch.
The text was updated successfully, but these errors were encountered:
[x]
):Description
when using 4 byte unicode, like emojis, in an issue (subject, content, ..) gitea will return a 500. This is because the database was created as
utf8
by gitea and gitea is using theutf8
namespace when connecting to it.This issue can be solved by
utf8
toutf8mb4
and
utf8mb4
when connecting to the db:Unfortunately, I'm not familiar enough with the gitea source code regarding the database creation (I'm pretty sure it's somewhat related to the types/struct in
models/*.go
, though), so sorry for not providing a patch.The text was updated successfully, but these errors were encountered: