LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-27-2008, 06:01 PM   #1
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Rep: Reputation: 15
Unhappy Problems with codification in Opensuse 11


Hello

I have several partitions (ext3,...) in my linux machine.

I recently upgraded to Opensuse 11 and now I have a NEW problem: some of my files have the spanish character "ñ" in their names and in Dolphin or in Konqueror and even in Konsole it appears like a "?".

The files that contain in their names that character will not work, for instance, a video will launch Kaffeine but will not be played.

When I try to change the name of the file in Dolphin, in Konqueror or in Konsole (even as root) a message is displayed saying that file does not exist. But it does!

In previous versions of Opensuse I had not that problem.

I am quite amazed with this, because I have no way to recover and use those files.

Please, help me!


Thanks in advance

Last edited by pepeq; 07-27-2008 at 06:04 PM.
 
Old 07-27-2008, 06:11 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you give a listing of some relevant files from a terminal session using

ls -l /directory_with_files_in_it
 
Old 07-28-2008, 06:24 AM   #3
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Original Poster
Rep: Reputation: 15
Of course:
"...
-rw-r--r-T 1 user users 871493632 ago 3 2006 The name of one of the files.avi
-rw-r--r-- 1 user users 733761536 may 25 02:22 The.name.of.another.file.avi
-rw-r--r-T 1 user users 739715256 ago 2 2006 Part_of_the_name_of_the_problematic_file_espa?ol.mpg
..."

Notice the "?" symbol in the last file.

Thank you very much for your already quick reply!

I didin't say this before. The command I used in Konsole to change the name is "rename". Maybe there is a different way to do it.
#rename "Part_of_the_name_of_the_problematic_file_espa?ol.mpg" new_name.mpg



Last edited by pepeq; 07-28-2008 at 06:30 AM.
 
Old 07-28-2008, 06:28 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you tried

mv Part_of_the_name_of_the_problematic_file_esp* correct_filename.mpg

?
 
Old 07-28-2008, 07:02 AM   #5
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Original Poster
Rep: Reputation: 15
Talking

I hadn't tried that but

IT WORKS!!!

The trick has been to use character "*" avoiding this way to write the problematic character:
#mv Part_of_the_name_of_the_problematic_file* new_name.mpg

I don't know if it was necessary to do so as root, but I did it that way.

THANK YOU VERY MUCH FOR THE SOLUTION


Last edited by pepeq; 07-28-2008 at 07:03 AM.
 
Old 07-28-2008, 07:54 AM   #6
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Original Poster
Rep: Reputation: 15
Ooh

I have found one inconvenient in one of my files: its name is something like this:
"-H_Part-of_the_name_of_the_problematic_file_espa?ol"

When I use the command:
#mv -H_Part-of_the_name_of_the_problematic_file* new_name.mp3
I get:
#mv: invalid option -- H

I have tried using "*" before and after some parts of the name.

I have also leaving the directory clear from other files and then type
#mv * new_name.mp3

But the message always is the same.

I wonder if this problem has a solution.


Thanks in advance for your help.
 
Old 07-29-2008, 05:35 AM   #7
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Original Poster
Rep: Reputation: 15
Funny workaround:
In the case of a media file open it in Amarok and there you can move the file to another directory, choosing also to replace certain characters and/or to use only ASCII.

It worked at least.

Anyway, I still wait for a more serious answer.

Last edited by pepeq; 07-29-2008 at 06:10 AM.
 
Old 07-29-2008, 05:59 AM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I can't create a suitably named file to test, but you should be able to escape the hyphen - something like

mv "\-Hrestoffilename..." outfile

Last edited by billymayday; 07-29-2008 at 06:22 AM.
 
Old 07-29-2008, 09:14 AM   #9
pepeq
Member
 
Registered: Aug 2004
Location: Spain
Distribution: opensuse 11
Posts: 51

Original Poster
Rep: Reputation: 15
As Amarok has solved my problem, I have not a suitable file to test your method.

Anyway, the thread will remain, so if I had the problem again, be sure I will test!


Thanks a lot for your help!
 
  


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
OpenSuSE 10.3 failing to uninstall openSuSE installer from the windows boot Lucens Linux - Newbie 5 10-11-2008 08:08 AM
openSUSE 11 RC sh0cker SUSE / openSUSE 6 06-02-2008 10:34 AM
OpenSuse 10.0 mikz SUSE / openSUSE 3 11-17-2005 12:41 PM
Problems with K3B: no Driver (and no Codification, too?) sanmartin Linux - Software 1 02-12-2005 02:23 PM
Latin codification, impossible mission? Hammett Linux - General 0 08-28-2003 05:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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