Skip to content

print UTF-8 text#23

Open
bictorman wants to merge 1 commit intojawerty:masterfrom
bictorman:master
Open

print UTF-8 text#23
bictorman wants to merge 1 commit intojawerty:masterfrom
bictorman:master

Conversation

@bictorman
Copy link

Looks like UTF-8 content was not encoded before printing.
To reproduce: alienfeed de

alienfeed berlin
 Top 10 /r/berlin links:
 1 -> 13 Glasfaserkabel zerschnitten: 160.000 Berliner ohne Internet.
 2 ->  2 Any good live music venues on a Monday night? [POST]
Traceback (most recent call last):
  File "/usr/local/bin/alienfeed", line 9, in <module>
    load_entry_point('AlienFeed==0.3.2', 'console_scripts', 'alienfeed')()
  File "/usr/local/bin/alien.py", line 229, in main
    subreddit_viewer(subm_gen)
  File "/usr/local/bin/alien.py", line 71, in subreddit_viewer
    links = submission_getter(generator, verbose=True)
  File "/usr/local/bin/alien.py", line 117, in submission_getter
    print line
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 26: ordinal not in range(128)

print UTF-8 characters
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

Successfully merging this pull request may close these issues.

1 participant