loiemilio / friendfeed-api

Automatically exported from code.google.com/p/friendfeed-api
0 stars 0 forks source link

Unicode error #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running the first python script in the documentation
2. Non-ascii characters produce the following:

UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-
3: character maps to <undefined>

3. Using simplejson

What is the expected output? What do you see instead?

Expected output is the titles of the public feeds. I generally get a few 
and then the error.

Please use labels and text to provide additional information.

Similar to this issue:

http://code.google.com/p/friendfeed-api/issues/detail?id=5

Original issue reported on code.google.com by michael....@gmail.com on 25 Sep 2008 at 9:51

GoogleCodeExporter commented 9 years ago
I can't reproduce this on my terminal (OSX) using simplejson. It is likely a 
terminal
specific issue.  Try changing the print entry["title"] to print
entry["title"].encode("utf-8", "ignore") to ignore any errors it has with your 
terminal.

Original comment by benjamin...@gmail.com on 26 Sep 2008 at 11:20