convert-nfd-unicode-filesystem-to-nfc-unicode /

Filename Size Date modified Message
src
106 B
51 B
1.1 KB
843 B

Convert NFD unicode filesystem to NFC unicode

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/
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.