Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Fixed Non-ASCII printable representation in Trend #249

Merged
merged 1 commit into from
Oct 11, 2015
Merged

Fixed Non-ASCII printable representation in Trend #249

merged 1 commit into from
Oct 11, 2015

Conversation

der-daniel
Copy link
Contributor

Hi,

When __repr__ is called on a Trend object, non-ASCII character leads to a UnicodeEncodeError.

When did this bug occur?
I am a German twitter User. The API broke on a Trend with name 'Dinge die Mädchen'. The ä is a non-ASCII character. The full error code was:
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 11: ordinal not in range(128)

I am not sure, if this may occur in other method calls. Basically, Non-ASCII characters should be supported, since twitter is used world-wide.

Thanks for the great API.

Cheers
Daniel

When __repr__ is called on a Trend object, non-ASCII character leads to
a UnicodeEncodeError.
@bear
Copy link
Owner

bear commented Oct 11, 2015

thanks!

bear added a commit that referenced this pull request Oct 11, 2015
Fixed Non-ASCII printable representation in Trend
@bear bear merged commit 00d605d into bear:master Oct 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants