aamalig / django-profile

Automatically exported from code.google.com/p/django-profile
BSD 2-Clause "Simplified" License
0 stars 0 forks source link

Avatar Picase Search isn't working with unicode strings #70

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
using Picasa Web Search with unicode string (utf-8)
like 'ישראל' from Avatar pages

What is the expected output? What do you see instead?
expected search in picase for 'ישראל'
but, it's crash on Unicode Error when gData uses str() on the uri

What version of the product are you using? On what operating system?

Please provide any additional information below.
A fix for it, using 'django.utils.encoding.iri_to_uri'

if request.method=="POST" and request.POST.get('keyword'):
        keyword = request.POST.get('keyword')
        keyword = iri_to_uri(keyword)
        gd_client = gdata.photos.service.PhotosService()

Original issue reported on code.google.com by fruch.t...@gmail.com on 19 Oct 2009 at 8:31

GoogleCodeExporter commented 8 years ago
fixed in [448], can you test it ?

Original comment by stephane.angel on 10 May 2010 at 2:19

GoogleCodeExporter commented 8 years ago
if you've used the code I've suggested, then it's working.

Original comment by fruch.t...@gmail.com on 10 May 2010 at 7:37