We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
encodeURI()
From the encodeURI page on MDN, we expect "\n" to be encoded as "%0A", but httpuv::encodeURI() returns the wrong value.
"\n"
"%0A"
httpuv::encodeURI()
httpuv::encodeURI("\n") #> [1] "% A" charToRaw(httpuv::encodeURIComponent("\n")) #> [1] 25 20 41 charToRaw("%0A") #> [1] 25 30 41 v8 <- V8::new_context() v8$eval("decodeURI('%0A')") #> [1] "\n"
Oddly, using V8 to evaluate encodeUIR("\n") results in an unspecified c++ exception
encodeUIR("\n")
v8$eval("encodeURI('\n')") #> Error in context_eval(join(src), private$context, serialize) : #> c++ exception (unknown reason)
The text was updated successfully, but these errors were encountered:
It looks like it's putting a leading space instead of a 0.
0
httpuv::encodeURI("\n") #> [1] "% A" httpuv::encodeURI("\r") #> [1] "% D" httpuv::encodeURI("\f") #> [1] "% C"
Sorry, something went wrong.
Use leading zeros when encoding strings. Closes #336
3857bd8
Successfully merging a pull request may close this issue.
From the encodeURI page on MDN, we expect
"\n"
to be encoded as"%0A"
, buthttpuv::encodeURI()
returns the wrong value.Oddly, using V8 to evaluate
encodeUIR("\n")
results in an unspecified c++ exceptionThe text was updated successfully, but these errors were encountered: