original_string: public function setCharset($charset)
      {
          if ('UTF8' === $charset = strtoupper($charset)) {
              $charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
          }
          $this->charset = $charset;
  
          foreach ($this->helpers as $helper) {
              $helper->setCharset($this->charset);
          }
      }
code: public function setCharset($charset)
      {
          if ('UTF8' === $charset = strtoupper($charset)) {
              $charset = 'UTF-8'; // iconv on Windows requires "UTF-8" instead of "UTF8"
          }
          $this->charset = $charset;
  
          foreach ($this->helpers as $helper) {
              $helper->setCharset($this->charset);
          }
      }
code_tokens: public function setCharset ( $ charset ) { if ( 'UTF8' === $ charset = strtoupper ( $ charset ) ) { $ charset = 'UTF-8' ; // iconv on Windows requires "UTF-8" instead of "UTF8" } $ this -> charset = $ charset ; foreach ( $ this -> helpers as $ helper ) { $ helper -> setCharset ( $ this -> charset ) ; } }
docstring: Sets the charset to use.
  
  @param string $charset The charset
docstring_tokens: Sets the charset to use .