Odd json encoding erro
Wells
thewellsoliver at gmail.com
Tue Dec 15 17:03:50 EST 2009
I get this exception when decoding a certain JSON string:
'ascii' codec can't encode character u'\u2019' in position 8: ordinal
not in range(128)
The JSON data in question:
http://mlb.com/lookup/json/named.player_info.bam?sport_code=%27mlb%27&player_id=%27489002%27
It's in the 'high_school' key. Is there some string function I can run
on the information before I decode it to avoid this?
Thanks!
More information about the Python-list
mailing list