Comments (16)
Go to Help: Diagnostics and look at "Properties" and make sure file.encoding and file.encoding are set to UTF-8.
"file.encoding": "UTF-8",
"sun.jnu.encoding": "UTF-8",
from openaudible_docker.
"file.encoding": "UTF-8",
But
"sun.jnu.encoding": "ANSI_X3.4-1968",
Not a single idea where this comes from or how to resolve it.
from openaudible_docker.
I made a change to the docker file, adding a
# Make sure file encoding will be set to UTF-8.
COPY --from=debian:9.11 /usr/lib/locale /usr/lib/locale
Are you able to test by building from git/docker (rather than just docker pull)
from openaudible_docker.
I build it on my own but still running in to the same issue.
from openaudible_docker.
Hmm.
Be sure to git pull and make sure the change above is in the Dockerfile.
Also, add:
ENV sun.jnu.encoding UTF-8
ENV file.encoding UTF-8
And see if the settings are different.
The installer should set the sun.jnu.encoding to UTF-8, which is why it shouldn't really be needed to be set as an environment variable. So I'm a bit confused since I can't reproduce it.
from openaudible_docker.
Those env are set but openaudible still sticks to "sun.jnu.encoding": "ANSI_X3.4-1968",.
from openaudible_docker.
Very strange.
Try quitting the OpenAudible application inside the browser. Then right-click the desktop, select "Open Terminal Here"
Then
/config/OpenAudible/debug_linux.sh
and see if you see a warning about jnu encoding on startup.
from openaudible_docker.
Sorry, but the container don't have a debug_linux.sh.
Not at all...
from openaudible_docker.
Inside the container is a full linux OS.. There should be a directory within that called /config/OpenAudible
Try opening the GUI terminal inside the web browser and running:
sh /config/OpenAudible/debug_linux.sh
from openaudible_docker.
In my container, there is no debug_linux.sh.
Do I need to pull it again or where should this shell be?
abc@7f56d1f484dd ~ $ ls -la /config/OpenAudible/
total 116
drwxrwxrwx+ 7 abc 911 4096 Jun 10 16:27 .
drwxr-xr-x 13 abc abc 4096 Jun 10 16:26 ..
drwxrwxrwx+ 2 abc 911 4096 Feb 1 12:09 aax
drwxrwxrwx+ 2 abc 911 4096 Feb 1 12:09 art
drwxrwxrwx+ 2 abc 911 4096 Feb 1 12:09 books
-rw-rw-rw-+ 1 abc 911 12231 Jun 10 16:26 credentials.json
-rw-rw-rw-+ 1 abc 911 157 Feb 1 16:10 directories.json
-rw-rw-rw-+ 1 abc 911 55 Jun 10 16:26 keys.json
-rw-rw-rw-+ 1 abc 911 688 May 24 14:14 license.json
-rw-rw-rw-+ 1 abc 911 553 May 29 15:56 settings.json
-rw-rw-rw-+ 1 abc 911 49 Nov 8 2021 stats.json
drwxrwxrwx+ 2 abc 911 4096 Jun 10 16:27 tmp
drwxrwxrwx+ 2 abc 911 4096 Oct 6 2021 web
-rw-rw-rw-+ 1 abc 911 380 Jun 10 16:27 windows.json
from openaudible_docker.
Oh, sorry. Looks like I got the directory wrong:
cd /usr/local/OpenAudible
sh debug_linux.sh
Towards the beginning of the output will be the java info and "starting OpenAudible... with any warnings about utf-8
from openaudible_docker.
Ah, this looks a lot better.
Like you said, here is the expected warning about the format.
But is still have no clue how to fix it.
Jun 13, 2022 4:30:56 PM org.openaudible.desktop.swt.gui.GUI <init>
INFO: Starting OpenAudible build 3.5.5 for gtk swt 4944 jvm 18.0.1
WARNING: File System Not Set to UTF-8:
file.encoding=UTF-8, sun.jnu.encoding=ANSI_X3.4-1968
(java:1489): dbind-WARNING **: 16:31:05.200: AT-SPI: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files
SWT SessionManagerDBus: Failed to RegisterClient: Timeout was reached
from openaudible_docker.
That is super strange.
Here is a fix I found but haven't tried... Add this to the Dockerfile
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
or run from the web GUI terminal:
sudo apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y locales
sudo sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
sudo dpkg-reconfigure --frontend=noninteractive locales && \
sudo update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
from openaudible_docker.
Ok, so I tried all those things as well.
And additionally, all other things I found with google.
So this:
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
and this
COPY --from=debian:9.11 /usr/lib/locale /usr/lib/locale
ENV LANG=C.UTF-8
from openaudible_docker.
Maybe your docker is out of date?
docker --version
Docker version 20.10.2, build 20.10.2-0ubuntu1~18.04.2
Or maybe update your linux?
What linux are you running? Is there an ISO for it? What region/language did you specify when you set up your linux?
from openaudible_docker.
I think there has been an issue with the configuration.
There had been some leftovers from previous docker container versions that had ruined the settings.
After I removed them, went through the whole setup process again, everything is working.
I'm not sure on which container change it had been, but I think the folder structure could lead to this issues even in the future...
from openaudible_docker.
Related Issues (12)
- Version 3.0.1 HOT 1
- Error Refreshing Library HOT 1
- Include structure HOT 1
- Runaway Internet Upload HOT 5
- Add GUIAUTOSTART variable to documentation
- unable to login to account, outdated version in container HOT 4
- change UID GID of files written to mounted volumes HOT 3
- Failed to execute child process "/config/setup.sh" (No such file or directory) HOT 3
- TODO #2? HOT 3
- Docker Command failed HOT 1
- on reboot all settings lost -- license now rejected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openaudible_docker.