Set the internal character encoding.

Twine\Str::encoding( string $encoding ) : Twine\Str

Parameters

$encoding The desired character encoding

Examples

$string = new Twine\Str('john pinkerton');

        $string->encoding('ASCII');