EmacsでUnicodeのBOM付きで保存するためのメモ Windows対策です
emacs上で
C-x RET f
を使い文字コードをutf-8 or utf-16のsignature付きものを指定してから保存する
指定できるのは以下のもの
utf-16be-with-signature
utf-16be-with-signature-dos
utf-16be-with-signature-mac
utf-16be-with-signature-unix
utf-16le-with-signature
utf-16le-with-signature-dos
utf-16le-with-signature-mac
utf-16le-with-signature-unix
utf-8-with-signature
utf-8-with-signature-dos
utf-8-with-signature-mac
utf-8-with-signature-unix
例:
C-x RET f utf-8-with-signature