Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Document Object > Properties

EmEditor Macro Reference: Encoding Property (Document Object)

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Document Object

Encoding Property

Retrieves or sets the current encoding of the opened file.


nEncoding = document.Encoding;

document.Encoding = nEncoding;


nEncoding = document.Encoding

document.Encoding = nEncoding



Select from the Encoding Constants, or specify any code page used in the Windows Operating System.


Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2021 by Emurasoft, Inc.