Editorconfig Guide.e

Charset

EditorConfig key: charset

Charset

charset

This option sets the character encoding to use when reading and writing the file.

Default value:

utf-8

Possible values:

  • utf-8
  • utf-8-bom
  • utf-16be
  • utf-16le
  • latin1

Examples

utf-8
Encoding: UTF-8
No byte order mark
utf-8-bom
Encoding: UTF-8
Byte order mark: 0xEF 0xBB 0xBF
utf-16be
Encoding: UTF-16 big-endian
Byte order mark: 0xFE 0xFF
utf-16le
Encoding: UTF-16 little-endian
Byte order mark: 0xFF 0xFE
latin1
Encoding: ISO-8859-1
No byte order mark