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 <abasta...@gmail.com> 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
> web2py+unsubscr...@googlegroups.com.
> 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 web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CABZ%2BKCBW2M%3DsRyFq5CqxK6sYEc9pco2qOA9tnpWcACLw_WGAwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to