Unicode Fullname 500 #6194

Closed
opened 2025-11-02 06:47:49 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @ghost on GitHub (Oct 22, 2020).

  • Gitea version (or commit ref): 1.12.5
  • Git version: 2.24.3
  • Operating system: Ubuntu - Docker image
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Seems down? "Bad Gateway"
  • Log gist:

2020/10/22 11:15:13 ...r/setting/profile.go:105:ProfilePost() [E] UpdateUser: Error 1366: Incorrect string value: '\xF0\x9D\x96\x91\xF0\x9D...' for column 'full_name' at row 1

Description

Go to own profile, set "Full Name" to some Unicode Chars like 𝖑𝖚𝖑 and hit save.

500 internal server error

Priority

not important. Even not allowing Unicode at all would be fine ;)

Originally created by @ghost on GitHub (Oct 22, 2020). - Gitea version (or commit ref): 1.12.5 - Git version: 2.24.3 - Operating system: Ubuntu - Docker image - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Seems down? "Bad Gateway" - Log gist: >2020/10/22 11:15:13 ...r/setting/profile.go:105:ProfilePost() [E] UpdateUser: Error 1366: Incorrect string value: '\xF0\x9D\x96\x91\xF0\x9D...' for column 'full_name' at row 1 ## Description Go to own profile, set "Full Name" to some Unicode Chars like `𝖑𝖚𝖑` and hit save. 500 internal server error ## Priority not important. Even not allowing Unicode at all would be fine ;)
GiteaMirror added the type/question label 2025-11-02 06:47:49 -06:00
Author
Owner

@zeripath commented on GitHub (Oct 22, 2020):

This is yet another yet another MySQL utf8 - utf8mb4 issue.

You need to migrate your db, the tables and the columns to utf8mb4. You should ensure that CHARSET=utf8mb4 in the [database] section of the app.ini.

@zeripath commented on GitHub (Oct 22, 2020): This is yet another yet another MySQL utf8 - utf8mb4 issue. You need to migrate your db, the tables and the columns to utf8mb4. You should ensure that `CHARSET=utf8mb4` in the `[database]` section of the app.ini.
Author
Owner

@peterscheu-aceart commented on GitHub (Mar 9, 2021):

See FAQ here: https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql
Works just fine!

Can be closed.

@peterscheu-aceart commented on GitHub (Mar 9, 2021): See FAQ here: https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql Works just fine! Can be closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6194