LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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
 
LinkBack Search this Thread
Old 11-14-2013, 09:12 AM   #1
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,071

Rep: Reputation: 125Reputation: 125
Linux won't show foreign characters in filenames.


Foregein characters are still not correctly displayed. Symbol "?" is displayed instead in file manager when files have characters specific for latin languages, chinese, russian etc.

Is this possible to fix?

On ubuntu 13.10

Last edited by yooy; 11-14-2013 at 10:17 AM.
 
Old 11-14-2013, 12:28 PM   #2
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,823

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Are these files that have been created in Windows? If you have a question mark in a diamond, that mean that Linux cannot understand the encoding. If your fonts simply didn't have the necessary character, you'd get a little box.

You can convert a text with the iconv tool, but I suspect a script for converting file names would be rather complex: I'd have to do it manually myself.
 
Old 11-14-2013, 03:26 PM   #3
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,071

Original Poster
Rep: Reputation: 125Reputation: 125
Quote:
Are these files that have been created in Windows?
yes

Quote:
If you have a question mark in a diamond, that mean that Linux cannot understand the encoding.
that's the case.
 
Old 11-15-2013, 11:01 AM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,823

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Then that's the problem. Windows uses a different way of representing Unicode (UTF16) to everyone else (UTF8), so the special characters are represented by pairs of bytes that are meaningless in Linux.

As I said, there is a utility for converting text, but writing a bash script that will get file names, feed them to iconv, and replace them with its output is beyond me. Perhaps you could ask "how to batch-process file names with iconv" in the programming section of the board.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell won't recognise foreign characters BlueberryPickles Programming 4 07-14-2008 03:52 AM
KDE 3.3.0 file manager doesn't show long filenames grayswander Linux - General 2 11-06-2004 06:50 AM
Linux Socket Bind Program Won't show with netstat rnice Programming 2 09-18-2004 09:59 AM
locales and foreign filenames with fat partitions alexrait1 Slackware 0 06-11-2004 07:39 AM


All times are GMT -5. The time now is 08:50 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration