-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't add emoji to issues #5660
Comments
@helmut72 Is your mysql DB utf8, or utf8mb4? |
I've created every db with utf8mb4 last year, but I see that most gitea tables was utf8. Now it's utf8mb4. Found this issue: #3513 and converted it to utf8mb4. But it doesn't help. |
Can I help with some more log files? I have completely reinstalled Gitea (1.7.2). Even if I create utf8mb4 database in MariaDB, Gitea creates utf8 tables after the first start. Looks like this is the default behavior. |
Tried another installation and use: Instead of: Found it on this Wiki: But also doesn't work. What is the supported database in Gitea? Is SQLite enough for 10-20 users? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions. |
We recommend you to use Mysql / Postgres when non personal use. |
Thanks, then I'd like to continue with MySQL. It's not that we use that many Emojis, but a 500 error isn't the best user experience. |
The issue is that we currently use utf8 tables on mysql not utf8mb4. Therefore you can't have emojis on mysql It's not as simple as just changing the tables yourself - as xorm will just change them back! If you want emojis use postgres. If you can help make utf8mb4 work that would be excellent. |
I have made utf8mb4 work on gitea now. But @zeripath I don't think xorm will change them back. I think we have to change two things:
restart gitea. And xorm should also support customerize charset and collation when create tables. I will send some PRs to xorm and gitea. |
[x]
):Description
Can't add emoji to issues. I get this error:
[...outers/repo/issue.go:1192 NewComment()] [E] CreateIssueComment: CreateComment: Error 1366: Incorrect string value: '\xF0\x9F\xA5\xB6' for column 'content' at row 1
The text was updated successfully, but these errors were encountered: