Description
Gitea currently saves wiki pages with special characters in the name as files that contain escaped characters in the name. (Example: Title with comma, ampersand & [brackets]
= Title-with-comma%2C-ampersand-%26-%5Bbrackets%5D.md
)
I propose that Gitea should be saving these pages as filenames with unescaped characters. (Example: Title with comma, ampersand & [brackets]
= Title-with-comma,-ampersand-&-[brackets].md
)
This would be better because sometimes these wikis are cloned and edited locally. Unescaped filenames are better for that. Also, other services like Github use unescaped characters and so any wikis mirrored from these services come with unescaped characters already. (See #8284 and #8408)
This would present a significant change because all the unit tests currently assume that filenames are saved with escaped characters. Also, backwards compatibility with existing wiki pages would be a concern. However, the unit tests could be adjusted and the solution presented in #8408 would solve the compatibility problem (with the logic reversed to satisfy the new unit tests).
For now, I'm hoping for feedback and discussion about this proposal. I'm also willing to prepare a pull request to make this change.