[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nautilus default coding



On Fri, 2003-07-25 at 05:43, Josselin Mouette wrote:
> Le ven 25/07/2003 à 01:04, Colin Walters a écrit :
> 
> > > I have problem with nautilus. I would like to create file names in
> > > iso-8859-2 coding but nautilus use utf-8. 
> > 
> > You should really switch over to UTF-8.  It's the only sane character
> > encoding for filenames.
> 
> Is there a simple way to re-encode all filenames on a filesystem from
> ISO8859-* to UTF8 ?

Perhaps something like this:

find / | (while read f; do if ! echo $f | iconv -f UTF-8 -t UTF-8; then \
          mv "$f" "$(echo $f | iconv -f ISO-8859-1 -t UTF-8)"; fi; done)

But that'll break hard links, and if you have files in any encoding
other than ISO-8859-1 and UTF-8 it won't work.

Generally, if the file is included in a Debian package, you should file
a bug on the package.




Reply to: