-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixed multi-language support URL #248
Conversation
In aiohttp0.14.1, when the URL in Chinese characters, will be reported 404 errors when accessing.
In aiohttp0.14.1, when the URL in Chinese characters, will be reported 404 errors when accessing.
@@ -105,7 +105,7 @@ def create_wsgi_environ(self, message, payload): | |||
if script_name: | |||
path_info = path_info.split(script_name, 1)[-1] | |||
|
|||
environ['PATH_INFO'] = path_info | |||
environ['PATH_INFO'] = unquote(path_info).encode().decode('latin-1') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't here be utf-8
instead of latin-1
? Since you turns all multilang chars here into garbage.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, I am -1 for that change. I need failing test case that this change fixes |
@asvetlov do you think it is possible to extract multilanguage test cases from pyramid? |
@fafhrd91 sure. |
In aiohttp0.14.1, when the URL in Chinese characters, will be reported 404 errors when accessing. Such modifications do then you can solve this problem