Page 1 of 1

(SOLVED) SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Posted: July 19th, 2019, 2:41 am
by semel
Hello. I'm having problems with docker-sabnzbd

I already contacted the ones maintaining the docker and they couldn't replicate the issue, so I decided to ask here, maybe someone else experienced this problem and found a workaround

When I open sabs interface it says "SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8"

Ubuntu 18.04, VPS (contabo)

Docker log


sudo nano /etc/default/locale

LANG=en_US.UTF-8


locale
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"
LC_ALL=


docker exec sabnzbd locale

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

Sincerely yours,

Re: SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Posted: July 19th, 2019, 3:40 am
by sander
The whole idea with docker from a user's point of view is: if the docker (/image) does not work, throw it away. So: as a user, do not try to repair a docker. Motto: Cattle, not pets.

Anyway:
- which docker image do you use. ("docker-sabnzbd " is too generic)?
- how do you start it?

EDIT
Based on your logging and the BTC in there, I think you use https://github.com/hotio/docker-sabnzbd . Correct?
If so, based on the git / Dockerfile, I created the image myself, and that has a correct encoding, so I can't reproduce:

Code: Select all

2019-07-19 08:48:39,658::INFO::[SABnzbd:1178] Arguments = /app/SABnzbd.py --browser 0 --server 0.0.0.0:8080 --config-file /config/app/sabnzbd.ini
2019-07-19 08:48:39,659::INFO::[SABnzbd:1183] Preferred encoding = UTF-8
2019-07-19 08:48:39,659::INFO::[SABnzbd:1193] SSL version = OpenSSL 1.1.1  11 Sep 2018
Third question:

- What do you get with https://hub.docker.com/r/linuxserver/sabnzbd/

Re: SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Posted: July 19th, 2019, 4:12 am
by semel
Based on your logging and the BTC in there, I think you use https://github.com/hotio/docker-sabnzbd . Correct?
Yes
how do you start it?
Honesty, I dunno. I'm not familiar with docker enough. It's part of Cloudbox media server project, so it starts automatically. They also got portainer instaled for easier management of containers.

is there a way to force specific encoding when starting sabnzbd in general?
I dunno how to incorporate this docker into cloudbox

Anyways, thanx for taking your time.. Much appreciated.

PS The issue was solved by the ones maintaining the docker image.

Re: (SOLVED) SABnzbd was started with encoding ANSI_X3.4-1968, this should be UTF-8

Posted: July 20th, 2019, 2:02 am
by sander

Code: Select all

is there a way to force specific encoding when starting sabnzbd in general?
Yes: with "env LANG=en_US.UTF-8 sabnzbdplus ..."
But that's inside the Dockerfile, so impossible for you

Code: Select all

PS The issue was solved by the ones maintaining the docker image.
Oh, good: exactly how it should work with docker. But how was it solved? I don't anything recent on https://github.com/hotio/docker-sabnzbd/commits/master