Author Topic: [Work-Around] Problem with file names in a foreign language  (Read 632 times)

Offline horusfalcon

  • Hero Member
  • *****
  • Posts: 997
  • Wayfarer of The Western Wastes
[Work-Around] Problem with file names in a foreign language
« on: October 29, 2011, 10:41:26 AM »
Hi, Gang,

This is one I've figured out a workaround for, but would like to solve eventually.  Meanwhile, the workaround is a handy trick.

I recently received some archived files from friends in Japan that, after extraction, were named with what has to be Japanese characters (they are showing up as white question marks in black diamonds in the file names in Dolphin, and as regular question marks in Konsole when I do an ls command.

Dolphin can't do anything with these files (open, copy, move, rename, nor delete).  Konsole is really lost, I presume because a ? is a wild card character when working at the shell prompt.

Enter Midnight Commander.  I started Midnight Commander from a root shell by issuing the command mc and used it to rename the strange files to something more manageable.  I'm not sure why Midnight Commander was able to do this, but it did.  I'm glad it's in my toolkit.

I had, prior to this, attempted to install a Japanese locale and got a message during one of the last steps about some missing files.  I may attempt it again and post more detail later, but being able to use a Japanese locale is not extremely high priority just now (I need to learn to read Japanese with some facility first - I grew up speaking the language but never learned to read it worth beans).

Well, that's all the news fit to print for now.  If I re-do the addlocale thing, I'll edit this to include the details.  Meanwhile, I got some shopping to do today (new shoes for work), so I'll talk at you all...

Later On,
D

"The Way is not a matter of knowing or not knowing.  One word to a wise man; one lash to a bright horse."

Dell Latitude D620, PCLinuxOS 2012.08 KDE4/LXDE, 3.2.18.pclos.bfs, specs here.

Offline TheGhost

  • Sr. Member
  • ****
  • Posts: 435
  • Boo!
Re: [Work-Around] Problem with file names in a foreign language
« Reply #1 on: November 08, 2011, 08:31:57 PM »
I just want to say: I love you, Midnight Commander!

And I love you too, Horusfalcon! Thanks for the great tip!

I keep having troubles like this, because my native language is Spanish; so I often encounter files with accented letters or the letter "ñ", and they are a sore sight in my folders.

So, from now on I can say, (This line is to be read with a heroic voice over) "This looks like a job for... MIDNIGHT COMMANDER!"
I was once a sinner, but I have seen the light. Linux saved me!

Online Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10621
  • MLUs Forever!
Re: [Work-Around] Problem with file names in a foreign language
« Reply #2 on: December 16, 2011, 07:19:32 PM »
Just to add here ........  I met with this problem today .......  had a few music files I haven't played in some time, with accented letters, and attempting to select any of them from Dolphin to play in VLC caused a failure.

Also I could not copy the files or rename them through Dolphin.

I found that PCManFM can handle them well, and selecting them from there the files played.

Also the files can be renamed from PCManFM.

There surely must be a fix for this situation .......  I would prefer to keep the accented letters as in the original file.

Is there some setting to be changed to display these letters properly?

MLUs rule the roost!

Linux XPS 3.2.18-pclos2.pae.bfs  32 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT