I have a old pc that is running Debian stable, that is in need of a upgrade. The problem is that it is using latin1 (ISO-8859-1) for everything, and since the rest of the world has moved to UTF-8 I plan to convert this computer as well.
And for this question I will focus in on the files that are served with Samba, and some has some latin1 characters in the filenames (like åäö).
Now my plan is to move all data of this old computer onto and a brand new one that is running Debian stable (but with UTF-8).
Does anybody have a good idea?
Note: later I plan to use
iconv to convert the content of some files with something like this:
iconv --from-code=ISO-8859-1 --to-code=UTF-8 iso.txt > utf.txt
However I don't know of a good way to convert the filesystem it self.
Note: Normally I usally just
scp from one computer to the next,
but then I end up with latin1 characters in the utf-8 filesystem.
Update: Did a small test round with a hand full of files (with funny chars) in the filenames, and that seemed like it could work.
convmv -r -f ISO-8859-1 -t UTF-8 *
-r = recursive;
-t = from/to.
So it was only to execute with the
convmv -r -f ISO-8859-1 -t UTF-8 --notest *
Nothing more to it.