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
net/url: problem with queryescape? #11249
Comments
Sorry/ Queryr string is "Z_FILTER=%25%u0414%u0430%u0432%u044B%u0434%u043E%u0432%25%u0418%u0432%u0430%u043D%25" |
What's the problem? |
Test case func main(){
} Error - invalid URL escape "%u0" 2015-06-17 15:56 GMT+03:00 Brad Fitzpatrick notifications@github.com:
|
|
But this implementation massively used by IE. 2015-06-18 9:19 GMT+03:00 Andrew Gerrand notifications@github.com:
|
Can you show me where/how? I can't find information about this. |
Our application have a lot of pages with code like: function L_POONAME_W_EKB_FLAG_LOV() { For unicode chars *escape *produce string like "%uXXXX" 2015-06-18 10:27 GMT+03:00 Andrew Gerrand notifications@github.com:
|
I use code like ... r.URL.RawQuery = decodeUnicodeEscapedChars(r.URL.RawQuery) ... func decodeUnicodeEscapedChars(s string) string {
} But i think its not so good practice. 2015-06-18 13:28 GMT+03:00 Vyacheslav Dutka vsdutka@gmail.com:
|
I don't think we should encourage it by enshrining it in the standard library. Anybody can write a package to do this and place it elsewhere on Github. But such a function probably should be more careful with allocations than |
If recieve error when use url.QueryUnescape with query string like "Z_FILTER=%25\u0414\u0430\u0432\u044B\u0434\u043E\u0432%25\u0418\u0432\u0430\u043D%25"
But it is normal query string
The text was updated successfully, but these errors were encountered: