Skip to content

Getting UnicodeDecodeError at /api/people/66/ #30

Open

Description

@mdhorda

Requesting http://swapi.co/api/people/66/?format=wookiee causes a UnicodeDecodeError. This works fine when not requesting the wookiee format. Looks like it's caused by an accented character in some of the character names like Dormé. The error occurs here:

/Users/mdhora/Github/swapi/resources/renderers.py in render
return bytes(self.translate_to_wookie(encoded_data)) ...

/Users/mdhora/Github/swapi/resources/renderers.py in translate_to_wookie
translated_data += char

Activity

  1. added a commit that references this issue on Oct 25, 2015
    ddb87d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions