LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File Name is not saved correctly for specific letters (probably encoding issue)) (https://www.linuxquestions.org/questions/linux-software-2/file-name-is-not-saved-correctly-for-specific-letters-probably-encoding-issue-4175514381/)

vujanic86 08-12-2014 03:25 AM

File Name is not saved correctly for specific letters (probably encoding issue))
 
Hi,

We have Red Hat Enterprise Linux Server release 6.0 (Santiago)

I have two PDF files.
I copy them using ftp on Red Hat Server.
File names are:
Beogradska.pdf
ČarlijaČaplina.pdf


Files saved on linux system are presented like this:
Beogradska.pdf --- CORRECT
?arlija?aplina.pdf --NOT CORRECT

This is big problems because I open those files via HTTP server and first file is opened correclty while for second HTTP server reports that file "?arlija?aplina.pdf does not exist" which is true because my file name is ČarlijaČaplina.pdf not ?arlija?aplina.pdf like it is saved in Linux.

I have problems with all serbian letters if they are in file name (č,ć,š,ž).


How to save file name correctly in Linux?
LANG variable is: LANG=en_US.UTF-8

But I do not know if that is the issue or something else?

T3RM1NVT0R 08-12-2014 04:12 PM

You could give it a try to the following:
Code:

wget -O <filename> ftp://url/file
it will look something like:
Code:

wget -O CarlijaCaplina.pdf ftp://ftp.redhat.com/path_to_file/ČarlijaČaplina.pdf
Remember it will save it in the directory from where you executed the command.


All times are GMT -5. The time now is 06:09 AM.