Thanks for pointing out that part Anthony. 

I see that there is a 'title' key in the list_vars, but those vars are 
related to urllib. 
I mean, how do they arrive as keys to that function? I can't figure it out. 
In the ticket details, when I click the "code" button related to my view, 
it shows an empty space:

<https://lh3.googleusercontent.com/-nyt_2SHtLpI/WF6OFHI8b8I/AAAAAAAACL8/1nunA_bnoaob-2Q6jrmcoASpv-ymOF7rgCLcB/s1600/screen-capture.png>

So, I'm stucked trying to figure out which line of my code is the one 
triggering the error.
I've searched and reviewed every "title" occurence in my code, but it's 
never used as a query var for URL.

Anyway, please let me know if this problem is very app specific, and I will 
no longer bother here :P
Meanwhile, I'll keep collecting more of these tickets.

Thank you very much!
Regards,
Lisandro.



El viernes, 23 de diciembre de 2016, 12:15:18 (UTC-3), Anthony escribió:
>
> Looks like in your call to URL, the vars dictionary includes:
>
> 'title': u'Eva de Dominici pos\xf3 como una chica Guess y cont\xf3 sus 
> tips beauty'
>
> Notice that the title is a unicode object. If the title is the only item 
> that might be unicode, you can simply encode it before passing it to the 
> URL() function:
>
> URL(..., vars=dict(..., title=unicode(title).encode('utf8')))
>
> If other items in the query string might also end up as unicode, you 
> should loop through and encode everything.
>
> Anthony
>
> On Thursday, December 22, 2016 at 5:32:32 PM UTC-5, Lisandro wrote:
>>
>> Sorry about that, the image quality was reduced after uploading it.
>> Here I made a new screen capture and uploaded it to my drive account, so 
>> It's full quality:
>>
>> https://drive.google.com/file/d/0B0y0m_8LgjGIT3hCU000T0hQamM/view?usp=sharing
>>
>> But the character you noticed was just some noise in the image.
>>
>> Just to add something that could be relevant: I use IS_SLUG validator in 
>> order to generate a unique slug and store it in a database record. Then, I 
>> use it as an argument of URL(), to construct the url of an article. 
>> I think that shouldn't cause any trouble, but who knows.. ¿maybe some 
>> unicode character is leaking into the slug? It shouldn't be the case, 
>> because if it was, then the error would be raised constantly, but it is 
>> sporadic :/
>>
>>
>>
>>
>> El jueves, 22 de diciembre de 2016, 18:25:59 (UTC-3), Dave S escribió:
>>>
>>>
>>>
>>> On Thursday, December 22, 2016 at 8:32:16 AM UTC-8, Lisandro wrote:
>>>>
>>>> Hi there, sorry for the delay, I was waiting for the error to occur.
>>>> Today the error triggered again, and I had disabled tickets2email, so I 
>>>> have the ticket, but it doesn't show any code, its odd.
>>>>
>>>
>>> Using my magnifying glass, I think I see that there's a Unicode 
>>> character in the *location* variable, between "con" and "sus".  Unicode 
>>> is not allowed in URLs; did you run an escape tool over it?
>>>
>>> /dps
>>>
>>>
>>>
>>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to