We recommend using Visual Studio 2017

ScriptingOptions.Encoding Property

Gets or sets the encoding for the scripting options.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public Encoding Encoding { get; set; }

Property Value

Type: System.Text.Encoding
An Encoding object that specifies the encoding for the scripting options

Community Additions

ADD
Show: