Property

Method

Event

 

 

DefaultCharSet v5.0.0.6

Reads a document with unspecified character sets after encoding it in the Windows default character sets. (available in Web Editor Control 5.0.0.2 or higher)

Syntax

    [get]HRESULT DefaultCharSet(
    BSTR *pVal
    );
    [put]HRESULT DefaultCharSet(
    BSTR newVal
    );

Parameters

[get] pVal

[out, retval] Prints the specified character sets.

[put] newVal

[in] Enters the character set values to be specified.

euc-jp

A file is encoded in CP_ACP by defaults in Windows system (shitf_jis in Japanese Windows, and ks_c_5601-1987 in Korean Windows system). If the encoding method is set in euc-jp, the document with no character set specified is read in euc-jp.

Return Values

0 (always)

Sample Codes

VB Script [put]

function Wec_OnInitCompleted
        Dim fRef
Set fRef = Document.testForm
  fRef.Wec.DefaultCharSet = "euc-jp"
end function

See Also

Charset, ContentEncoding