LoginSignup
95
83

More than 5 years have passed since last update.

nkfで文字コード変換

Posted at

参考にしたサイト
http://tweeeety.hateblo.jp/entry/2014/12/17/230611

文字コードを表示

nkf -g sample.txt

UTF-8に変換

nkf -w --overwrite sample.txt

オプション

option description
-g 自動判別
-w UTF-8コードで出力
-e EUC-JPコードで出力
-s Shift-JISコードで出力
--overwrite 直接上書き
95
83
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
95
83