500 Internal Server Error when using emoji in comments #10915

Closed
opened 2025-11-02 09:22:02 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @amp0x1b on GitHub (May 25, 2023).

Description

2023/05/25 11:41:04 ...rs/web/repo/issue.go:2797:NewComment() [E] [646f494f] CreateIssueComment: Error 1366 (HY000): Incorrect string value: '\xF0\x9F\x92\xAF ' for column 'content' at row 1

Gitea Version

1.19.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

gitea docker image

Database

MySQL

Originally created by @amp0x1b on GitHub (May 25, 2023). ### Description 2023/05/25 11:41:04 ...rs/web/repo/issue.go:2797:NewComment() [E] [646f494f] CreateIssueComment: Error 1366 (HY000): Incorrect string value: '\xF0\x9F\x92\xAF ' for column 'content' at row 1 ### Gitea Version 1.19.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? gitea docker image ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 09:22:02 -06:00
Author
Owner

@lunny commented on GitHub (May 25, 2023):

Please use utf8mb4

@lunny commented on GitHub (May 25, 2023): Please use utf8mb4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10915