decodeCharset() public method

public decodeCharset ( $encodedString, $charset )
 private function decodeCharset($input)
 {
     if (in_array($this->getCharset(), ['utf-8', 'us-ascii'])) {
         return $input;
     }
     $charset = new Charset();
     return $charset->decodeCharset($input, $this->getCharset());
 }