Get HaruEncoder instance for the specified encoding

# HaruDoc::getEncoder

(PECL haru >= 0.0.1)

HaruDoc::getEncoder — Get HaruEncoder instance for the specified encoding

### Descrierea

HaruDoc::getEncoder ( string `$encoding` ) : object

Get the HaruEncoder instance for the specified encoding.

### Parametri

`encoding`

  The encoding name. See Builtin Encodings for the list of allowed values.

### Valorile întoarse

Returns a HaruEncoder instance for the specified encoding.

### Erori/Excepții

Emite un HaruException în caz de eroare.

### A se vedea și

- HaruDoc::setCurrentEncoder() - Set the current encoder for the document
- HaruDoc::getCurrentEncoder() - Get HaruEncoder currently used in the document