nkf

Network kanji filter.

TLDR

Convert to UTF-8 encoding

$ nkf -w [path/to/file.txt]
copy

Convert to SHIFT_JIS encoding

$ nkf -s [path/to/file.txt]
copy

Convert to UTF-8 encoding and overwrite the file

$ nkf -w --overwrite [path/to/file.txt]
copy

Set new line code to LF and overwrite (unix type)

$ nkf -d --overwrite [path/to/file.txt]
copy

Set new line code to CRLF and overwrite (windows type)

$ nkf -c --overwrite [path/to/file.txt]
copy

Decrypt mime file and overwrite

$ nkf -m --overwrite [path/to/file.txt]
copy

Copied to clipboard
Dodo Farming