powderblock / DealWithItReddit

Reddit bot. Computer vision for facial detection and transformation. Python, PRAW, & OpenCV.
http://www.reddit.com/user/DealWithItbot/
MIT License
33 stars 3 forks source link

\u2026 is Breaking Tweeting #33

Closed powderblock closed 9 years ago

powderblock commented 9 years ago

When tweeting, including the \u2026 character results in a UnicodeEncodeError from Tweepy.

This seems to be fixed (according to: this stackoverflow question) By using unicode() instead of our current system of str().

powderblock commented 9 years ago

@porglezomp was right. This only crops up when non uni messages are sent.

porglezomp commented 9 years ago

@powderblock What?? No, it's caused by any messages that are unicode instead of ASCII. \u2026 is the unicode "…" character. Try replacing instances of str with unicode and see what breaks then.