Skip to main content
PyCon US is happening May 14th-22nd in Pittsburgh, PA USA.  Learn more

Convert Mac OSX NFD unicode filename to NFC unicode

Project description

This tool can convert file system encoded in NFD mode to NFC mode.

On Mac OS X, the filesystem encode file name in NFD unicode (http://en.wikipedia.org/wiki/Unicode_normalization#Example).
On GNU/Linux, by default the filesystem encode file name in NFC unicode but it can also contain file encoded in NFD mode.
You can use this tool to convert NFD to NFC.

Install

$ pip install nfd2nfc

Usage

$ nfd2nfc -h
This tool can convert file system encoded in NFD mode to NFC mode.

Usage:
  nfd2nfc <path>
  nfd2nfc <url>
  nfd2nfc -h | --help | --version

Examples

Convert on local file system (use it on GNU/Linux, not on Mac OS X) :

$ nfd2nfc /home/username/myproject/

You can use ssh url syntax to fix unicode on remote host :

$ nfd2nfc ssh://foobar@example.com:2000:/home/foobar/www/

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page