Slashdot Mirror


Changing Your Filesystem's Locale?

dybdahl asks: "Now that Red Hat has changed the default character set to be UTF-8, none of the existing filenames that included local characters like æ, ø, å, (Denmark) are handled correctly by Konqueror or can be seen correctly with "ls" in a shell. Is there a tool out there that can convert an ISO8859-1 ext3 filesystem to UTF-8?"

5 of 15 comments (clear)

  1. Convert what? by Sam+Lowry · · Score: 3, Informative

    The filesystem has been stocking the filenames in utf-8 for ages. What you have to do is to make sure there is iocharset=utf-8 in the options of mount in the file /etc/fstab.

    In general, man mount helps a lot.

    1. Re:Convert what? by cyberkreiger · · Score: 3, Informative

      According to "man mount", "iocharset" is an option available to filesystems (v)fat, iso9660, and ntfs only. It's also available for smbfs.

      --
      Stumbling in the dark
      I hear slavering of jaws
      Eaten by a grue.
    2. Re:Convert what? by amorsen · · Score: 4, Informative

      The filesystem thought it was using UTF-8 filenames. That is what the specification says it should use. However the unfortunate poster has used ISO-8859-1 (or -15) file names. Therefore he now has a file system that does not conform to the standard, and of course he wants to do something about it.

      --
      Finally! A year of moderation! Ready for 2019?
  2. Did you look at freshmeat? by cyberkreiger · · Score: 5, Informative

    I think convmv may be what you're looking for.

    --
    Stumbling in the dark
    I hear slavering of jaws
    Eaten by a grue.
  3. Change the RedHat Default by SpaFF · · Score: 2, Informative

    Ok, so RedHat makes the default charset UTF-8. Just change the default to ISO8859-1. Its like a 2 line change in /etc/sysconfig/i18n. I had to do a similar change when we switched our mailserver to RH8 because early versions of spamassassin (more specifically perl though I think) didn't like playing with UTF-8.

    -Lee

    --
    -----BEGIN GEEK CODE BLOCK----- Version: 3.12 GIT d? s: a-- C++++ UL++++ P++ L+++ E- W++ N o-- K- w--- O- M+ V PS+ P