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.

Shift-JISで書かれたプログラムファイルの文字化けを直す

Posted at

以下コマンドで現在の文字エンコーディングを確認

$ echo $LANG
C.UTF-8

文字エンコーディングをUTF-8に変更する

iconv -f SHIFT-JIS -t UTF-8 input.c -o output.c
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?