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

Пробел в Get-запросах: + или _ или %20 #81

Closed
rekzi opened this issue Aug 26, 2017 · 4 comments
Closed

Пробел в Get-запросах: + или _ или %20 #81

rekzi opened this issue Aug 26, 2017 · 4 comments

Comments

@rekzi
Copy link

rekzi commented Aug 26, 2017

screenshot from 2017-08-26 09-30-30

@cdump
Copy link

cdump commented Aug 27, 2017

А в чем вопрос? И + и %20 нужно понимать как пробел в query string'e

@rekzi
Copy link
Author

rekzi commented Aug 27, 2017

@cdump Столкнулся с ошибками у себя при сравнении строк с запроса и из хранилища. Может есть имена стран с символом плюса или такое кто-то проверить хочет. Зачем вот такая неоднозначность?
encodeURIComponent("A B+C") -> "A%20B%2BC".

@cdump
Copy link

cdump commented Aug 27, 2017

@rekzi в query string параметре ("GET параметры") + - это всегда пробел. Но %20 - тоже пробел. Если нужен плюс - то это %2B.

Это всегда так, а не только в этом конкурсе :)

@rekzi
Copy link
Author

rekzi commented Aug 28, 2017

Я полагал нужна всего лишь перекодировка %xx. JS еще больше ввел в заблуждение.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants