Also, I think it would be nice if URL helper would have ability to handle this, without a need to figure out the encoding/decoding subject...
On Fri, May 17, 2019, 5:03 PM Eliezer (Vlad) Tseytkin < [email protected]> wrote: > Okay, I got it :) > > Very embarrassing. There were some prior entries in the database that > weren't converted to begin with, so when they were pulled over, the > exception was raised. I totally forgot about them, and on top of that the > one that caused the trouble was just one character different from the one I > was testing against, with 49 characters being the same, so it was almost > unnoticeable visually... > > I thought that the conversion malfunctioned, while in fact it simply > pulled back something else, without me realizing what was going on... > > I took a deep breath and patiently went through the whole thing step by > step and, of course, found it. It's now just perfect. Ended up using atob > and btoa. > > Just a quick question: are atob and btoa consistent and give the same > results across browsers and operating systems? (If not, I'll use that uri > thing, if that's hopefully consistent) > > On Fri, May 17, 2019, 12:42 PM Anthony <[email protected]> wrote: > >> On Friday, May 17, 2019 at 12:20:37 PM UTC-4, Vlad wrote: >>> >>> It works almost, but not 100% :) >>> >>> with encodeURIComponent : >>> >>> abc def (test) >>> comes back as >>> abc_def__test_ >>> >> >> Please show your exact code. Doesn't sound like you are using the query >> string. >> >> Anthony >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to a topic in the >> Google Groups "web2py-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/web2py/cyiquWAQU4w/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/web2py/d24a071c-77db-40f3-a991-17b0c2705e90%40googlegroups.com >> <https://groups.google.com/d/msgid/web2py/d24a071c-77db-40f3-a991-17b0c2705e90%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CABZ%2BKCAPxd0rUGsKHer0n_VRxqWb0Xu0-3vWDWGJr-UrV44eQA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

