Tags : tips

このTagsの登録数:1件 表示 : 1 - 1 / 1

2007-06-06

emacsでファイル開いたら文字化けしてたときに文字コードを指定して読み直す方法

emacsでHTMLをいじってるとよく文字コード判定に失敗するので、そのときの対応方法を調べた。以下でok

C-x C-m s utf-8[RET] C-x C-v
C-x C-m s
universal-coding-system-argument
Execute an I/O command using the specified coding system.
utf-8
指定するcoding-system。utf-8, sjis, euc-jp等
C-x C-v
find-alternate-file
Find file filename, select its buffer, kill previous buffer.