UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 32: ordinal not in range(128)

Issue #82 resolved
Former user created an issue

when selecting sbs the list parsing generates an output for a while but hits i am guessing a show or episode name which causes this python error.

UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 32: ordinal not in range(128)

Comments (5)

  1. delx repo owner

    Hi, sorry but I can't reproduce this. Can you have a look at my comments on #62 to see if they're applicable to you?

    If not please reply with:

    • Operating system
    • Python version
    • The output of running locale

    Thanks.

  2. Gul-Dukat

    Hey. Sorry when I originally submitted I was in a bit of a rush. Operating System - Windows 10 running Debian stretch under linux subsystem for windows. Ive taken a look as per your request at #62 and yes the output of:

    <code> python -c 'import sys; print(sys.stdout.encoding)' </code> wasn't UTF-8 so as you suggested I set the LANG environment variable and it was confirmed

    <code> LANG=en_AU.utf-8 ; EXPORT LANG </code>

    then it worked and solved the issue. Thanks

  3. Log in to comment