EdGetEncoding

EdGetEncoding gets the output encoding of an editor.

ssEncoding = EdGetEncoding(hEdit)

Return Value

ssEncoding is a string containing the encoding and the line separator separated by a space, eg. "utf8 crlf".

Value

Meaning

ansi

default value

utf8bom

UTF-8 with BOM (Byte Order Mark).

utf8

UTF-8 without BOM.

utf16le

UTF-16 little endian without BOM.

utf16lebom

UTF-16 little endian with BOM.

utf16

UTF-16 without BOM.

utf16bom

UTF-16 with BOM.

Value

Meaning

“default”

Default value (“crlf”)

“crlf”

\x0d \x0a

“cr”

\x0d

“lf”

\x0a

History

Version

Description

R2016.6

New.

id-753184