Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with special characters (Umlaute, german) #20

Closed
der-optimist opened this issue Jan 2, 2019 · 8 comments
Closed

Problem with special characters (Umlaute, german) #20

der-optimist opened this issue Jan 2, 2019 · 8 comments
Assignees
Labels
Milestone

Comments

@der-optimist
Copy link

der-optimist commented Jan 2, 2019

Hello jaymoulin,
I really like your work and I'm 99% happy with it :-)
I live in Germany, so many of the file names I download contain special characters like ä ö ü Ä ß ...
These are shown as a ? in the host system (openmediavault 4.1.16-2) and samba/cifs doesn't show the name at all (it uses 2VH5OD~P.MP4 for example).
I use UTF-8 in openmediavault - what does the jdownloader container use? Or did I just not understand how to set the charset for the container?

Description

Command line I used to start the container
Started via GUI, but according to this command:
docker run -d --restart=always -v ~/Downloads:/root/Downloads -v ~/jdownloader/cfg:/opt/JDownloader/cfg --name jdownloader -u $(id -u):$(id -g) jaymoulin/jdownloader

Steps to reproduce the issue:

  1. use openmediavault 4.1.16-2
  2. use this docker-container to download a file with a german umlaut (äöüÄÖÜ), e.g.:
    https://www.youtube.com/watch?v=wtJGAJrvFu8

Describe the results you received:
Filenames like "K?ln.mp4" instead of "Köln.mp4"
If I do "mv K?ln.mp4 Köln.mp4" everything is fine, so the special characters work if they are encoded correctly.

(paste logs)

Output of docker inspect jdownloader --format='{{index .Config.Labels.version}}':

0.6.0

Thank you

@jaymoulin jaymoulin self-assigned this Jan 5, 2019
@jaymoulin
Copy link
Owner

I don't think this is related to neither docker nor jdownloader, nor my docker-jdownloader image. Do you have something I can make some tests out of?

@der-optimist
Copy link
Author

der-optimist commented Jan 5, 2019 via email

@jaymoulin
Copy link
Owner

I cannot reproduce this issue on my machine. Do you know if you use an arm32v6 architecture? If so, your image ID should be c25e336eb651

@der-optimist
Copy link
Author

No, I use an Odroid HC1 (same as XU4) with an Exynos 5422 => ARMv7 (Cortex-A15 + Cortex-A7).
Should the docker container use the charset/encoding of the host system or can it be defined separately?

@jaymoulin
Copy link
Owner

I didn't build an armv7 image. Do you mind giving me the docker image id?

@der-optimist
Copy link
Author

der-optimist commented Jan 8, 2019

Oh ok. I searched google for "jdownloader docker arm" and found your image. As I saw "multiarch, arm, armv7,..." on top of the page, I was happy :-)
I'm not (yet) very familiar with docker - I hope I get the right info for you:

output of "docker images --no-trunc"
REPOSITORY TAG IMAGE ID CREATED SIZE
jaymoulin/jdownloader latest sha256:c25e336eb651600bf100a52f8e6cf40b129277ac6f5614abc4c3f0141300a49e 2 months ago 213MB

output of "docker images"
REPOSITORY TAG IMAGE ID CREATED SIZE
jaymoulin/jdownloader latest c25e336eb651 2 months ago 213MB

@jaymoulin
Copy link
Owner

You're using the armv6 image which is compatible with armv7. This is the only image that does not use the same base image as the other due to a performance issue with armv6 and latest openjdk with jdownloader. My guess is, something in the base image must be interfering with your encoding.

I don't think I'll spend so much time on recompiling old jdk versions do fix a minor issue like this one but I leave this open for someone to take a look

@der-optimist
Copy link
Author

OK thank you

@jaymoulin jaymoulin added this to the 0.7.0 milestone Feb 9, 2019
jaymoulin added a commit that referenced this issue Feb 9, 2019
Repository owner locked as resolved and limited conversation to collaborators Mar 30, 2019
@jaymoulin jaymoulin modified the milestones: 0.7.0, 0.6.1 Apr 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants