https://bugs.gpodder.org/show_bug.cgi?id=877

           Summary: On episode status download: UnicodeDecodeError:
                    'ascii' codec can't decode byte 0xe2 in position 78
           Product: my.gPodder.org
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: low
         Component: Advanced API (Server-side)
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I suspect that the problem is in "get_episode_changes" in mygpo.api.advanced" -
we might need to do some encoding conversion / fixing in the "actions"
dictionary.

Does Django's ORM return unicode strings or encoded strings?

================

Traceback (most recent call last):

  File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py", line 92, in
get_response
    response = callback(request, *callback_args, **callback_kwargs)

  File "/srv/mygpo/mygpo/api/basic_auth.py", line 93, in wrapper
    **kwargs)

  File "/srv/mygpo/mygpo/api/basic_auth.py", line 32, in view_or_basicauth
    return view(request, *args, **kwargs)

  File "/srv/mygpo/mygpo/api/advanced.py", line 173, in episodes
    return JsonResponse(get_episode_changes(request.user, podcast, device,
since, now))

  File "/srv/mygpo/mygpo/api/httpresponse.py", line 43, in __init__
    ensure_ascii=False)

  File "/usr/lib/pymodules/python2.5/simplejson/__init__.py", line 243, in
dumps
    **kw).encode(obj)

  File "/usr/lib/pymodules/python2.5/simplejson/encoder.py", line 367, in
encode
    return ''.join(chunks)

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 78:
ordinal not in range(128)

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to