LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-12-2014, 03:25 AM   #1
vujanic86
LQ Newbie
 
Registered: Aug 2014
Posts: 3

Rep: Reputation: Disabled
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?
 
Old 08-12-2014, 04:12 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
File Name is not saved correctly for specific letters (probably encoding issue)) vujanic86 Red Hat 2 08-12-2014 08:21 AM
Help with sed and awk to change L-case letters to U-case for specific lines in a file rootaccess Linux - General 12 05-21-2012 02:50 PM
mysqldump: special chars are not correctly saved ddaas Linux - Server 3 02-23-2011 08:07 AM
[SOLVED] Awk - finding and counting words specific letters within mora978 Programming 9 10-13-2010 10:45 AM
Any way to search for video files that use a specific encoding? Rob00 Linux - Software 4 10-27-2009 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration