12
10

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 5 years have passed since last update.

emacs で文字コードをUnicode(UTF-8 or UTF-16)のBOM付きにする

Posted at

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 

12
10
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
12
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?