0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ファイルのエンコードを EUC から UTF-8 に変換したい

Posted at

20年も前のソースコードは EUC なので、これを UTF-8 に変換するのだ。。。

iconv?

文字コード変換といえば iconv 一択なんだが、一括で変換するにはだるい。

$ iconv -f euc-jp -t utf8 README.ja

nkf

今ではもう使われないと思われる nkf で行こうと思う。

$sudo apt install nkf
$ find -name '*.c' | xargs nkf --overwrite -w
$ find -name '*.h' | xargs nkf --overwrite -w

まぁ、これでいけたから良しとする。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?