LoginSignup
0
0

More than 5 years have passed since last update.

文字コード変換 Linux Windows

Last updated at Posted at 2018-10-09

文字コード色々調べて最終的にたどり着いたのは
nkfコマンド

[file name]に変換したいファイル名を入れる。
ここに[*]を入れると
カレントディレクトリ全てを変換できるのでとても便利でオススメ!

権限がなければ

Can't set permission xxx.txt

など出てきますが変換は完了していることがあったりします。

Linux -> Windows

$ nkf -sLw --overwrite [file name]

$ cd test
$ nkf -sLw --overwrite *

Windows -> Linux

$ nkf -Lu -x -w80 --overwrite [file name]

$ cd test
$ nkf -Lu -x -w80 --overwrite *
0
0
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
0
0