I'm using a Python script which returns the currently playing/on air DJs on the BBC at the moment. Has worked well for months. Now I find it actually fails if there's an apostrophe in the output. Can I fix this somehow?
The error, from
pythonshell in is
exit code: 1, Traceback (most recent call last): File "script2.py", line 17, in <module> print g_data.text UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 7: ordinal not in range(128)
Clara Amfo Radio 1 Dance Ace Ken Bruce Essential Classics Hip-hop’s Laughing Stock Desert Island Discs Revisited The Emma Barnett Show Cricket Mary Anne Hobbs