Skip to content

unicode emoji in repo description results in server error #13138

@markuman

Description

@markuman
  • Gitea version (or commit ref): 1.12.5
  • Git version:
  • Operating system: Docker Container
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
    • Mariadb
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

When using emoji in the repository description, gitea throws an error (500).

Oct 14 07:26:31 osuv gitea[803]: #033[36m2020/10/14 05:26:31 #033[0m#033[32m...ters/repo/setting.go:117:#033[32mSettingsPost()#033[0m #033[1;31m[E]#033[0m #033[1mUpdateRepository#033[0m: #033[1mupdateRepository: update: Error 1366: Incorrect string value: '\xF0\x9F\x9A\x80' for column `gitea`.`repository`.`description` at row 1#033[0m
Oct 14 07:26:31 osuv gitea[803]: [Macaron] 2020-10-14 05:26:31: Completed POST /m/nextcloud_collection/settings 500 Internal Server Error in 18.947038ms

Screenshots

unicode500

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions