defaultCharset Property

Internet Development Index

Retrieves the default character set from the current regional language settings.

Syntax

[ sCharset = ] document.defaultCharset

Possible Values

sCharsetString that specifies or receives the default character set.

The property is read-only. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

The value depends on the current regional language settings. For typical settings in North America, the value is windows-1252. For a list of other possible language settings, see Charsets in Microsoft Internet Explorer 5.

Standards Information

There is no public standard that applies to this property.

Applies To

document