src/StringBuilder.php
public function changeEncoding($encoding)
    {
        $encoding       = (string) $encoding;
        $this->string   = iconv($this->encoding, $encoding, $this->string);
        $this->encoding = $encoding;

        return $this;
    }
public function changeEncoding($encoding)
    {
        $encoding       = (string) $encoding;
        $this->string   = iconv($this->encoding, $encoding, $this->string);
        $this->encoding = $encoding;

        return $this;
    }
Convert this sequence into another encoding.

@param string $encoding The new encoding.

@return StringBuilder