Unable to create an repo where the name contains an utf-8 char. #10619

Closed
opened 2025-11-02 09:12:54 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @tuxmaster5000 on GitHub (Apr 8, 2023).

Description

When I try to create an repo which contains an utf8 char in its name, an error is shown:
"Repository name should contain only alphanumeric, dash ('-'), underscore ('_') and dot ('.') characters."
But an utf-8 character is an normal character.

Gitea Version

1.19.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Binary download from GH

Database

MySQL

Originally created by @tuxmaster5000 on GitHub (Apr 8, 2023). ### Description When I try to create an repo which contains an utf8 char in its name, an error is shown: "Repository name should contain only alphanumeric, dash ('-'), underscore ('_') and dot ('.') characters." But an utf-8 character is an normal character. ### Gitea Version 1.19.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Binary download from GH ### Database MySQL
GiteaMirror added the type/bug label 2025-11-02 09:12:54 -06:00
Author
Owner

@KN4CK3R commented on GitHub (Apr 8, 2023):

alphanumeric as a-z0-9

@KN4CK3R commented on GitHub (Apr 8, 2023): alphanumeric as `a-z0-9`
Author
Owner

@delvh commented on GitHub (Apr 8, 2023):

Database:
MySQL

Please see https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql.
@KN4CK3R is absolutely right, that's the cause, not the database charset.

@delvh commented on GitHub (Apr 8, 2023): >~~Database:~~ ~~MySQL~~ ~~Please see https://docs.gitea.io/en-us/faq/#why-are-emoji-broken-on-mysql.~~ @KN4CK3R is absolutely right, that's the cause, not the database charset.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10619