-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
UTF8 characters on version slugging -- or slugging in general #1410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Is there any algorithm you can suggest? Currently if a all-non-ascii name is provided the algorithm will return |
This might be a good solution: https://pypi.python.org/pypi/unicode-slugify On Mon, Jul 6, 2015 at 11:30 AM, Gregor Müllegger [email protected]
Eric Holscher |
I think using UTF-8 in the URL is no good as there are just too many tools that do not properly handle UTF-8. However Wikipedia is doing it. The problem I see is with subdomains that contain project slugs. They definitely will make problems when they contain non-ascii characters. |
We've been using the std library to handle this (convert all the unicode to its ascii representation):
|
I think it's not a problem using unicode chars on the URL. Actually, we do support this for filenames: https://test-builds.readthedocs.io/en/unicode-filename/ but we do replace the unicode chars when they are in the version's name/identifier/slug: https://test-builds.readthedocs.io/en/d--branch/
We should probably keep the project's slug as ASCII. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I want to reopen it and apply the solution proposed by Eric: use I also considered
(there are more examples on its docs) |
@humitos Something like:
|
@dojutsu-user yes, it is that line. Although, I've already created a for this issue: #5186 |
@humitos |
This ticket came up as part of #1407. We should make sure version slugging is handling UTF8 characters in a sane way.
The text was updated successfully, but these errors were encountered: