EdSetEncoding¶
EdSetEncoding sets the output coding of an editor.
- bool = EdSetEncoding(hEdit, ssEncoding, ssNewline)
Return Value
If the function succeeds, the return value is TRUE (1); otherwise it is FALSE (0).
Parameters
- hEdit
Identifies the editor.
- ssEncoding
ssEncoding is one of the following strings:
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.
The values are case insensitive and minus characters are ignored.
UTF-16-LE
is a valid value.
- ssNewline
ssNewline is one of the following strings:
Value
Meaning
“default”
Default value (“crlf”)
“crlf”
\x0d \x0a
“cr”
\x0d
“lf”
\x0a
History
Version |
Description |
---|---|
R2013.5 |
New. |
See also
id-733728