#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
In case you still need help, just ask again
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
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"? |
#5
|
||||
|
||||
can you provide the output of the command
Quote:
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 |
#6
|
|||
|
|||
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= 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? |
#7
|
||||
|
||||
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 |
#8
|
||||
|
||||
Also please provide an example link, just want to make sure that it's really caused by wrong locale
__________________
JD-Dev & Server-Admin |
#9
|
|||
|
|||
Quote:
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. |
#10
|
||||
|
||||
@mrphx: thanks for the feedback. I also found info that snap packages strip the locale settings
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|