RuudBurger/CouchPotatoServer — Issue #65: Encoding issues
Author: RuudBurger
Created: 2012-01-09 12:45:13+00:00
State: open

http://help.couchpotatoapp.com/discussions/v2/33-manage-issues

Maybe use ek from sickbeard? https://github.com/midgetspy/Sick-Beard/blob/master/sickbeard/encodingKludge.py

with:

try:
locale.setlocale(locale.LC_ALL, "")
sickbeard.SYS_ENCODING = locale.getpreferredencoding()
except (locale.Error, IOError):
pass

# for OSes that are poorly configured I'll just force UTF-8
if not sickbeard.SYS_ENCODING or sickbeard.SYS_ENCODING in ('ANSI_X3.4-1968', 'US-ASCII', 'ASCII'):
sickbeard.SYS_ENCODING = 'UTF-8'