JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02.11.2020, 22:23
mrphx mrphx is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Unhappy Download to NTFS fails, because cyrillic characters are replaced by "?"

Hi!

I just switched from Win10 to Ubuntu 20.04.

Now JD2 fails to download files that contain "foreign" characters, eg cyrillic.
By fail I mean JD2 cant save them to NTFS partitions at all.

When I download files onto an EXT4 partition all the cyrillic characters are replaced with "?".

So many of my files look like variations of "????-??????.mp4", which is terrible. (To add to this: when I move these files to an USB Stick all the "?" are replaced by "_". Dont know why at all. )

Inside the LinkGrabber and JD2 in general the names are shown correctly, and Ubuntu itself also has no problems with these characters, so in theory I could replace all the filenames by hand... but thats an terrible amount of work.

Any workaround besides switching back to Win10?
Reply With Quote
  #2  
Old 02.11.2020, 22:58
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

The ? character is sign that your LOCALE is incorrect or not a utf-8 one. see
help.ubuntu.com/community/Locale
Within JDownloader it's just font rendering but as soon as JDownloader/Java has to interact with the OS/filesystem, the current LOCALE is used to convert the text to byte representation in filesystem.
For example when you use autostart/systemd scripts to autostart JDownloader, then the wrong LOCALE will be used. You can use board search/google for it
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 02.11.2020, 22:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

In case you still need help, just ask again
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 02.11.2020, 23:55
mrphx mrphx is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
your LOCALE is incorrect
Im not very software savvy, I just installed Ubuntu 20.04 and JD2 through "Ubuntu Software" and then started it and inserted some youtube links.

I doubt I am using "autostart/systemd scripts" and havent heard about "locale" before today.

I read the page you linked and tried typing "locale" "locale -a" and "locale gen" into Terminal... I lack the experience to tell where the JD2 conflict is located. No solution through these yet.

I googled the problem and found a similar problem with a 4 year old answer from you here: https://board.jdownloader.org/showpo...61&postcount=2

But I am not sure where I would/could enter these lines.

How do i force my Ubuntu & JD2 to use the correct "locale"?
Reply With Quote
  #5  
Old 03.11.2020, 11:20
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

can you provide the output of the command
Quote:
locale
in terminal?
What is your system language?
Also please provide a JDownloader log, see https://support.jdownloader.org/Know...d-session-logs and post shown logID here
Maybe the 3rd party JDownloader "ubuntu software" package strips the current locale
__________________
JD-Dev & Server-Admin
Reply With Quote
  #6  
Old 03.11.2020, 20:08
mrphx mrphx is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default

Code:
~$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=
System language is usually english, with german keyboard. Tried to install russian alongside but that didnt solve it.

Wouldnt it be sensible to look after the JD2 version offered through "Ubuntu Software"?

So if I understand you correctly, I just have to make sure that JD2 uses the correct locale-version when "outputing" a download... how do I force it to?
Reply With Quote
  #7  
Old 03.11.2020, 20:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Please provide a JDownloader log as it contains the locale Java sees/uses.
Your locale looks fine.

PS: wir können auch gerne auf Deutsch schreiben
__________________
JD-Dev & Server-Admin
Reply With Quote
  #8  
Old 03.11.2020, 20:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

Also please provide an example link, just want to make sure that it's really caused by wrong locale
__________________
JD-Dev & Server-Admin
Reply With Quote
  #9  
Old 25.12.2020, 16:20
mrphx mrphx is offline
Modem User
 
Join Date: Nov 2020
Posts: 4
Default

Quote:
Originally Posted by Jiaz View Post
Maybe the 3rd party JDownloader "ubuntu software" package strips the current locale
To wrap it up:

I guess you were right with this suspicion.
Problem was solved by deinstalling the package provided by "ubuntu software" and doing a manual install from other source.
Reply With Quote
  #10  
Old 28.12.2020, 11:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,286
Default

@mrphx: thanks for the feedback. I also found info that snap packages strip the locale settings
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 20:51.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.