APP_NAME doesn't support accents/diacritics, and may stop gitea #2273

Closed
opened 2025-11-02 04:30:39 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @danilogalisteu on GitHub (Aug 30, 2018).

  • Gitea version (or commit ref): 1.5.0
  • Git version: 2.18.0
  • Operating system: Win 2008 (server), Win7 (client)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I added a word with an accent to APP_NAME ("Repositório"), and it was not shown correctly in the web interface, as in the screenshot below. Then I changed the "app.ini" coding from ANSI to Unicode, and the gitea service would not start. Finally, I changed the coding to UTF-8, and the name was shown as expected. "app.ini" was edited with Windows' Notepad.

Screenshots

app_name

Originally created by @danilogalisteu on GitHub (Aug 30, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.5.0 - Git version: 2.18.0 - Operating system: Win 2008 (server), Win7 (client) - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description I added a word with an accent to APP_NAME ("Repositório"), and it was not shown correctly in the web interface, as in the screenshot below. Then I changed the "app.ini" coding from ANSI to Unicode, and the gitea service would not start. Finally, I changed the coding to UTF-8, and the name was shown as expected. "app.ini" was edited with Windows' Notepad. ## Screenshots ![app_name](https://user-images.githubusercontent.com/10237982/44871549-7d633f80-ac69-11e8-9876-c38854f3ad65.png)
GiteaMirror added the reviewed/wontfix label 2025-11-02 04:30:39 -06:00
Author
Owner

@lafriks commented on GitHub (Aug 30, 2018):

Only UTF-8 is supported and I don't see need to change that.
ASCII is charset dependant and can not be guessed automatically.

@lafriks commented on GitHub (Aug 30, 2018): Only UTF-8 is supported and I don't see need to change that. ASCII is charset dependant and can not be guessed automatically.
Author
Owner

@danilogalisteu commented on GitHub (Aug 31, 2018):

I understand, although I wouldn't have expected it to fail with such a simple input.
Is this or should this be documented somewhere? I couldn't find anything related in issues or docs.
Thanks anyway for the feedback!

@danilogalisteu commented on GitHub (Aug 31, 2018): I understand, although I wouldn't have expected it to fail with such a simple input. Is this or should this be documented somewhere? I couldn't find anything related in issues or docs. Thanks anyway for the feedback!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2273