d3 / d3-request

A convenient alternative to XMLHttpRequest.
BSD 3-Clause "New" or "Revised" License
110 stars 54 forks source link

d3.request inherent uri encoding not handling encoding % itself correctly? #37

Open computationdoc opened 6 years ago

computationdoc commented 6 years ago

It seems perhaps d3.request inherent uri encoding is not handle % correctly?

for example if I use d3.request to pass a text string in a parameter string that includes a % character it is not encoded so 20% . becomes 20%%20. rather than 20%25%20. and fails later...

I understand the answer may be to wrap in encodeURIComponent() but putting that all over the place seems not optimal since things get encoded anyway...

please evaluate and advise.

thanks!

JCS