Share via


AlwaysSaveInDefaultEncoding Property [Publisher 2003 VBA Language Reference]

Returns or sets a Boolean value that specifies whether Web pages within a Web publication should always be saved using default encoding. If True, Web pages within a publication will always be saved using the default encoding of the client computer. If False, Web pages will not be saved using default encoding. The default value is False. Read/write.

expression.AlwaysSaveInDefaultEncoding

expression Required. An expression that returns a WebOptions object.

Remarks

If the AlwaysSaveInDefaultEncoding property is set to True on a given WebOptions object, any subsequent attempts to set the ****

Visit Encoding

property on that object will be ignored.

Example

The following example tests whether the Web publication is currently set to be saved using default encoding. If so, the AlwaysSaveInDefaultEncoding property is set to False, and the Encoding property is used to set the encoding to Unicode (UTF-8).

Dim theWO As WebOptions

Set theWO = Application.WebOptions

With theWO
    If .AlwaysSaveInDefaultEncoding = True Then
        .AlwaysSaveInDefaultEncoding = False
        .Encoding = msoEncodingUTF8
    End If
End With

Applies to | WebOptions Object