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 |
Can you give a listing of some relevant files from a terminal session using
ls -l /directory_with_files_in_it |
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 :) |
Have you tried
mv Part_of_the_name_of_the_problematic_file_esp* correct_filename.mpg ? |
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 :D |
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. |
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. |
I can't create a suitably named file to test, but you should be able to escape the hyphen - something like
mv "\-Hrestoffilename..." outfile |
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!:) |
All times are GMT -5. The time now is 01:22 PM. |