
changeFilenameCode
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
Service menu to convert filenames from and to utf-8
***
When you have files named with special characters as é è à ô etc. and a system using utf-8 you may have some problems. Old files created before your utf-8 system or files comming from windows may be encoded using iso-XXX charater set. So they will be badly displayed ! (usualy a square in place of character)
This service menu is designed to repair that by converting your filenames to and from utf-8.
***
Requirement:
- iconv : http://www.gnu.org/software/libiconv/
- bash : http://www.gnu.org/software/bash/
***
Install:
- extract files
- copy the encodeRename.sh bash script somewhere in your PATH
(make sure it is executable)
- copy the changeFilenameCode.desktop to
- ~/.kde/share/apps/konqueror/servicemenus/ for only one user
- /usr/share/apps/konqueror/servicemenus/ (as root) for all users
- edit changeFilenameCode.desktop to set up your code
ie: replace iso-8859-1 which is code for French characters
- restart konqueror
***
Author: JJL
Home Page: http://kubuntu.free.fr/servicemenu/
15 years ago
0.2 02/11/2005 add french translation
also works for directories (thanks to bobuse)
0.1 23/10/2005 first release
15 years ago
0.2 02/11/2005 add french translation
also works for directories (thanks to bobuse)
0.1 23/10/2005 first release
Tadu
15 years ago
instead of a hand-grown script
that does only half of the job?
Instead of this script one could
just install convmv and run it
once and be done with it.
-> bad.
Report
bobuse
15 years ago
Report
nicodietrich
15 years ago
Your tool is nice. I have a suggestion: It would be nice to be able to convert filenames recursively (automatically going into directories).
Ideally that could be done with an extra "-r" option for the encodeRename.sh script. (and is not really needed inside the servicemenu entry).
Thanks!!
Report
jjl
15 years ago
I will look at such an option but this should complicate the script a bit :)
Anyway you could do that with a find command (from iso-8859-1 to utf-8) :
find . -type f -execdir encodeRename.sh iso-8859-1 utf-8 {} \;
(This works only for files)
Report
penturon
15 years ago
Report
collinm
15 years ago
Report
bobuse
15 years ago
Report
jjl
15 years ago
Thanks
Report
bobuse
15 years ago
Report
zefo
15 years ago
Report
jjl
15 years ago
You can use any code supported by iconv.
Report