l3uddz / plex_dupefinder

Find and delete duplicate files in Plex
GNU General Public License v3.0
303 stars 54 forks source link

unicode character issues #30

Closed ghost closed 4 years ago

ghost commented 4 years ago
Determining best media item to keep for 'A.I. Rising' ...
Traceback (most recent call last):
  File "/usr/local/bin/plex_dupefinder", line 461, in <module>
    print("\tRemoving : %r - %r" % (media_id, part_info['file']))
UnicodeEncodeError: 'ascii' codec can't encode character '\xe8' in position 55: ordinal not in range(128)
ghost commented 4 years ago

Fix:

sudo locale-gen en_US en_US.UTF-8

sudo dpkg-reconfigure locales

follow gui, check set as above, reboot after

run sudo locale and you should see...

LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"

Dupefinder should now work correctly.

ghost commented 4 years ago

Still getting this, let me know if you want access to my box to test @desimaniac