LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

nkf

converts Japanese text encodings

TLDR

Convert to UTF-8
$ nkf -w [input.txt] > [output.txt]
copy
Convert to Shift-JIS
$ nkf -s [input.txt] > [output.txt]
copy
Convert to EUC-JP
$ nkf -e [input.txt] > [output.txt]
copy
Auto detect and convert
$ nkf -w --guess [input.txt]
copy
Convert in place
$ nkf -w --overwrite [file.txt]
copy
Show input encoding
$ nkf --guess [file.txt]
copy

SYNOPSIS

nkf [options] [files]

DESCRIPTION

nkf (Network Kanji Filter) converts Japanese text encodings. Handles UTF-8, Shift-JIS, EUC-JP.The tool auto-detects encodings. Essential for Japanese text processing.

PARAMETERS

FILES

Files to convert.
-w
Convert to UTF-8.
-s
Convert to Shift-JIS.
-e
Convert to EUC-JP.
--guess
Detect encoding.
--overwrite
Modify file in place.
--help
Display help information.

INSTALL

sudo apt install nkf
copy
sudo dnf install nkf
copy
sudo zypper install nkf
copy
brew install nkf
copy
nix profile install nixpkgs#nkf
copy

CAVEATS

Japanese text focused. Auto-detection may fail. Backup before overwrite.

HISTORY

nkf was created for Japanese computing, handling various encodings used in Japan.

SEE ALSO

iconv(1), uconv(1), recode(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid