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 11-14-2013, 09:12 AM   #1
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
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
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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,387

Original Poster
Rep: Reputation: 174Reputation: 174
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
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
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



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
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

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

All times are GMT -5. The time now is 07:32 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