Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Fixed multi-language support URL #248

wants to merge 2 commits into from

Conversation

larryhq
Copy link

@larryhq larryhq commented Jan 16, 2015

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

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')
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fafhrd91 used utf-8 in decoding response headers for client (266b386)
Maybe we need to make modifications in parser, not in wsgi?

@fafhrd91
Copy link
Member

Right now, I am -1 for that change. I need failing test case that this change fixes

@fafhrd91
Copy link
Member

@asvetlov do you think it is possible to extract multilanguage test cases from pyramid?

@asvetlov
Copy link
Member

@fafhrd91 sure.

@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants