lithium\data\source\Database::encoding()

abstract public method

Getter/Setter for the connection's encoding. Abstract. Must be defined by child class.

Parameters

  • null|string $encoding

    Either null to retrieve the current encoding, or a string to set the current encoding to. For UTF-8 accepts any permutation.

Returns

string|boolean

When $encoding is null returns the current encoding in effect, otherwise a boolean indicating if setting the encoding succeeded or failed. Returns 'UTF-8' when this encoding is used.

Source

	abstract public function encoding($encoding = null);