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):
path = '/'.join( # could be encoded slashes!
quote(unquote(pce).encode('utf8'), b'')
for pce in parsed.path.split('/')
)
How to fix this problem?
Thanks.
Reactions are currently unavailable
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):
path = '/'.join( # could be encoded slashes! quote(unquote(pce).encode('utf8'), b'') for pce in parsed.path.split('/') )How to fix this problem?
Thanks.