# class CSSCharsetRule

###

Module | khtml
Namespace | DOM
Class | CSSCharsetRule
Inherits | DOM::CSSRule

The CSSCharsetRule interface a \@charset rule in a CSS style sheet. A \@charset rule can be used to define the encoding of the style sheet.

### methods

- CSSCharsetRule ( )

  returns ctor

- CSSCharsetRule (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.CSSCharsetRule |

- CSSCharsetRule (other)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  other | DOM.CSSRule |

- CSSCharsetRule (impl)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  impl | CSSCharsetRuleImpl |

- encoding ( )

  returns DOM.DOMString

  The encoding information used in this \@charset rule.

- setEncoding (a0)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | DOM.DOMString |

  see encoding CSSException SYNTAX_ERR: Raised if the specified encoding value has a syntax error and is unparsable.

  DOMException NO_MODIFICATION_ALLOWED_ERR: Raised if this encoding rule is readonly.