-
Notifications
You must be signed in to change notification settings - Fork 22
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
Incorrect transform unicode url #45
Comments
Before I start digging into this, I'd like to confirm what the test is. Does the following generate the bug for you?
txstyle.org turns that into |
Yes, I use latest version textile. Parser on textile.org working correctly. But python library works incorrectly. For example repl output:
As you can see, the value of the href attribute is different. I suspect that the textile.org uses a PHP parser that works correctly. |
This is fixed for now. I don't know when I'll push out a new update, but if you need an urgent fix for this, you can use |
Thank you very much! |
Hello, I try to create a link with Unicode characters:
https://myabstractwiki.ru/index.php/Заглавная_страница
.After the copy, this link from navigation string and paste to textile link transform to
https://myabstractwiki.ru/index.php/%D0%97%D0%B0%D0%B3%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%D1%8F_%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0
.But the link in rendered HTML looks incorrect:
https://myabstractwiki.ru/index.php/%C3%90%C2%97%C3%90%C2%B0%C3%90%C2%B3%C3%90%C2%BB%C3%90%C2%B0%C3%90%C2%B2%C3%90%C2%BD%C3%90%C2%B0%C3%91%C2%8F_%C3%91%C2%81%C3%91%C2%82%C3%91%C2%80%C3%90%C2%B0%C3%90%C2%BD%C3%90%C2%B8%C3%91%C2%86%C3%90%C2%B0
.I suspect that this is due to double encoding in Unicode (see line 945 - 948):
How to fix this problem?
Thanks.
The text was updated successfully, but these errors were encountered: