Skip to content

Instantly share code, notes, and snippets.

@JamesChevalier
Last active October 11, 2025 19:33
Show Gist options
  • Select an option

  • Save JamesChevalier/8448512 to your computer and use it in GitHub Desktop.

Select an option

Save JamesChevalier/8448512 to your computer and use it in GitHub Desktop.

Revisions

  1. JamesChevalier revised this gist Jan 16, 2014. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions mac_utf8_insanity.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,13 @@
    [convmv manpage](https://www.j3e.de/linux/convmv/man/)

    Install convmv if you don't have it

    `sudo apt-get install convmv`

    Convert all files in a directory from NFD to NFC:

    `convmv -r -i -f utf8 -t utf8 --nfc --notest .`
    `convmv -r -f utf8 -t utf8 --nfc --notest .`

    Convert all files in a directory from NFC to NFD:

    `convmv -r -i -f utf8 -t utf8 --nfd --notest .`
    `convmv -r -f utf8 -t utf8 --nfd --notest .`
  2. JamesChevalier revised this gist Jan 16, 2014. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions mac_utf8_insanity.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,11 @@
    Install convmv if you don't have it

    `sudo apt-get install convmv`

    Convert all files in a directory from NFD to NFC:

    `convmv -r -i -f utf8 -t utf8 --nfc --notest .`

    Convert all files in a directory from NFC to NFD:

    `convmv -r -i -f utf8 -t utf8 --nfd --notest .`
  3. JamesChevalier revised this gist Jan 16, 2014. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions mac_utf8_insanity.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    # Install convmv if you don't have it
    Install convmv if you don't have it
    `sudo apt-get install convmv`

    # Convert all files in a directory from NFD to NFC:
    Convert all files in a directory from NFD to NFC:
    `convmv -r -i -f utf8 -t utf8 --nfc --notest .`

    # Convert all files in a directory from NFC to NFD:
    Convert all files in a directory from NFC to NFD:
    `convmv -r -i -f utf8 -t utf8 --nfd --notest .`
  4. JamesChevalier renamed this gist Jan 16, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. JamesChevalier revised this gist Jan 16, 2014. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions mac_utf8_insanity.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,4 @@
    `convmv -r -i -f utf8 -t utf8 --nfc --notest .`

    # Convert all files in a directory from NFC to NFD:
    `convmv -r -i -f utf8 -t utf8 --nfd --notest.`

    # To test and confirm, you can omit the option `--notest .`
    `convmv -r -i -f utf8 -t utf8 --nfd --notest .`
  6. JamesChevalier created this gist Jan 16, 2014.
    10 changes: 10 additions & 0 deletions mac_utf8_insanity.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    # Install convmv if you don't have it
    `sudo apt-get install convmv`

    # Convert all files in a directory from NFD to NFC:
    `convmv -r -i -f utf8 -t utf8 --nfc --notest .`

    # Convert all files in a directory from NFC to NFD:
    `convmv -r -i -f utf8 -t utf8 --nfd --notest.`

    # To test and confirm, you can omit the option `--notest .`