Macro Reference — Document Object — Encoding Property (Document Object)

# Encoding Property (Document Object)

Retrieves or sets the current encoding of the opened file.

##

### [JavaScript]

    nEncoding = document.Encoding;
    document.Encoding = nEncoding;

### [VBScript]

    nEncoding = document.Encoding
    document.Encoding = nEncoding

## Parameters

nEncoding

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

## Version

Supported on EmEditor Professional Version 4.00 or later.