Skip to content

Unicode issues #1

Description

@simonwjackson

First off, thanks a million for writing this python wrapper!

Bare with me as I'm a bit of a python newbie.
I ran the following example from the README:

#!/usr/bin/env python
# -*- coding: utf-8 -*-

from gamesdb.api import API

gamesdb_api = API()

atari_platform = gamesdb_api.get_platform('22')
print atari_platform.name
print atari_platform.overview

and im getting the following unicode error

UnicodeEncodeError: 'ascii' codec can't encode character u'\u2014' in position 794: ordinal not in range(128)

The only workaround i could manage was to use .encode('utf-8')
but this puts HTML special characters in the text.

...renamed "Atari 2600", after the unit's Atari ...

Am i missing a step here?

Activity

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