LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 09-08-2011, 03:05 AM   #1
raj k yadav
LQ Newbie
 
Registered: Dec 2008
Posts: 27

Rep: Reputation: 2
How to copy files having unicodes in filenames in linux from unix


Hi,

I have a issue, when I copy files from a nas location where the filenames contains the special characters. For example, capaņ.txt is the file residing on nas but when it is copied on linux server (SLES 10 SP 3), the special character is visible as "?" i.e. capa?.txt.

Below is the output of locale command:

ryadav@itsusra:~> locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Quick help is highly appreciated, please suggest how the special characters can be visible as original.
 
Old 09-08-2011, 08:29 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
The problem is that (some of) the files on your NAS are not UTF-8 encoded.
Linux is using UTF-8 encoding.
You need to convert the file names to UTF-8 encoding.
There's a utility called convmv to help you do this. Then the files can be copied correctly.
 
  


Reply



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
How to copy tar files from unix floppy disk to linux WWII Linux - Newbie 6 07-24-2009 01:48 PM
how to copy binary files using Unix API's rohanak Programming 5 05-09-2008 04:26 PM
copy files and make all filenames uppercase pas Linux - Newbie 1 12-19-2004 11:39 PM
Can't copy files from an SCO Unix System V computer to a Linux computer gnppapas Linux - General 2 11-27-2004 01:39 PM
Is the pipe (|) an illegal character for unix/linux filenames? Foebane Linux - General 7 07-08-2002 12:16 AM

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

All times are GMT -5. The time now is 06:20 PM.

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