Page 1 of 1
WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 17th, 2020, 3:49 pm
by Franz A
Hello!
I just installed sabnzbd (2.3.6 [190ec0a]) on my raspbian system (Raspberry Pi 4B 2GB).
Everything looks fine, it seems to run, I can access it from the browser on my Mac in the LAN but there is this Warning-message on startup:
Code: Select all
2020-06-17 22:33:23,050::WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8. Expect problems with Unicoded file and directory names in downloads.
What can I do to get rid of this warning, or ist it not so bad and I will have to live with it?
My raspbian (uname -a - output):
Code: Select all
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux
Debian 10.4
I already changed the system localisation default to "en_US_UTF-8" but this had no effect, even after reboot.
Please excuse my english - I am from Austria

And please, if you have further questions - be so kind to explain it "the easy way" for me, because I'm not very familar with that Linux-stuff.
I have seen one similar thread but because there the solution was the Docker-Solution I think this is not my solution.
Yours
Franz
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 17th, 2020, 5:13 pm
by OneCD
Can you run these before launching SABnzbd?
Code: Select all
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 18th, 2020, 2:20 am
by Franz A
Hello OneCD and thank you for this reply!
I did run these commands before launch of SABnzbd.
No more warning in the Startup-Process about encoding. So good!
But - do I have to do this every startup or can I "automate" these steps?
yours
Franz
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 18th, 2020, 3:45 pm
by OneCD
Assuming you're using SystemD, you could create a shell-script that runs those commands first, then launches SABnzbd.
Code: Select all
#!/usr/bin/env bash
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LC_CTYPE=en_US.UTF-8
/opt/sabnzbd/SABnzbd.py --browser 0
(... adjusting the path to wherever your SABnzbd is installed.

)
Then modify your [sabnzbd@.service] file to exec your new shell-script.
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 19th, 2020, 2:05 pm
by Franz A
OK. Now it works fine.
Thank you.
Finally, after fiddeling around with my inability to creat a propper shell-script, i discovered the file
/etc/default/sabnzbdplus
which I edited
(EXTRAOPTS=export LANG=en_US.UTF-8
AND
USER=pi).
And that did the job! Without any other work from me SABnzbd started as a service at the next reboot.
All fine.
yours
Franz
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 19th, 2020, 3:01 pm
by OneCD
Franz A wrote: ↑June 19th, 2020, 2:05 pm
Finally, after fiddeling around with my inability to creat a propper shell-script, i discovered the file
/etc/default/sabnzbdplus
which I edited
(EXTRAOPTS=export LANG=en_US.UTF-8
AND
USER=pi).
Oh cool! I didn't know about that one.
Good work!

Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 20th, 2020, 10:02 am
by jcfp
Nice to see thing worked out. Using the init.d service that comes with the package - as you eventually did - had the side effect of letting you benefit from the sane environment it sets up. Basically, LANG is taken from /etc/default/locale (if defined), and PYTHONIOENCODING hardcoded to utf-8 to get rid of encoding related issues.
Franz A wrote: ↑June 19th, 2020, 2:05 pmEXTRAOPTS=export LANG=en_US.UTF-8
Do note that whatever is set in EXTRAOPTS gets added onto the options the script passes to sabnzbd, so only valid sabnzbd command line options should go in there (
not the stuff quoted here).
Re: WARNING::[sabnzbdplus:1172] SABnzbd was started with encoding ISO-8859-1, this should be UTF-8.
Posted: June 20th, 2020, 11:46 am
by Franz A
jcfp wrote: ↑June 20th, 2020, 10:02 am
Nice to see thing worked out. Using the init.d service that comes with the package - as you eventually did - had the side effect of letting you benefit from the sane environment it sets up. Basically, LANG is taken from /etc/default/locale (if defined), and PYTHONIOENCODING hardcoded to utf-8 to get rid of encoding related issues.
Franz A wrote: ↑June 19th, 2020, 2:05 pmEXTRAOPTS=export LANG=en_US.UTF-8
Do note that whatever is set in EXTRAOPTS gets added onto the options the script passes to sabnzbd, so only valid sabnzbd command line options should go in there (
not the stuff quoted here).
OK. I hope I understood what you wanted to tell me.
I now replaced the entry
with what was it before:
Looks good - still no warnings in the GUI in the browser.
Thank you for the advice.
yours
Franz