original_string: public function setCharset($charset)
      {
          $prev = $this->charset;
  
          $charset = strtoupper($charset);
          $charset = null === $charset || 'UTF-8' === $charset || 'UTF8' === $charset ? 'CP1252' : $charset;
  
          $this->charset = $charset;
  
          return $prev;
      }
code: public function setCharset($charset)
      {
          $prev = $this->charset;
  
          $charset = strtoupper($charset);
          $charset = null === $charset || 'UTF-8' === $charset || 'UTF8' === $charset ? 'CP1252' : $charset;
  
          $this->charset = $charset;
  
          return $prev;
      }
code_tokens: public function setCharset ( $ charset ) { $ prev = $ this -> charset ; $ charset = strtoupper ( $ charset ) ; $ charset = null === $ charset || 'UTF-8' === $ charset || 'UTF8' === $ charset ? 'CP1252' : $ charset ; $ this -> charset = $ charset ; return $ prev ; }
docstring: Sets the default character encoding to use for non-UTF8 strings.
  
  @param string $charset The default character encoding to use for non-UTF8 strings
  
  @return string The previous charset
docstring_tokens: Sets the default character encoding to use for non - UTF8 strings .