PST .NET Class Library
Show/Hide TOC

# MessageEncoding Property

Gets or sets message encoding. Default is UTF8 encoding.

## Definition

Namespace: Independentsoft.Msg
Assembly: Independentsoft.Pst (in Independentsoft.Pst.dll) Version: 1.2.900.17830
C#

    public Encoding Encoding { get; set; }

VB

    Public Property Encoding As Encoding
    	Get
    	Set

#### Property Value

Encoding
The encoding.

## Example

In order to save message as Unicode use: `message.Encoding = System.Text.Encoding.Unicode;`

## See Also

#### Reference

Message Class
Independentsoft.Msg Namespace