Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError: 'charmap' codec can't encode character u'\u201c' in position 12: character maps to <undefined> #3

Open
damonregan opened this issue Apr 16, 2012 · 0 comments

Comments

@damonregan
Copy link
Owner

In tweets.py...

It appears that if a tweet text contains a unicode character (in this case, u'\u201c') a UnicodeEncodeError is generated.

Traceback (most recent call last):

 File "tweets.py", line 25, in <module>
      print status.text

 File "c:\development\envs\tfe\lib\encodings\cp437.py", line 12, in encode
      return codecs.charmap_encode(input,errors,encoding_map)

 UnicodeEncodeError: 'charmap' codec can't encode character u'\u201c' in position 12: character maps to <undefined>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant