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!
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to