Exemplo n.º 1
0
 public function set_charset($charset)
 {
     try {
         Headers::save(Headers::set_charset($charset));
     } catch (HeaderTypeException $e) {
         print_r($e->getMessage());
     }
     return $this;
 }
Exemplo n.º 2
0
 public function testUTF8CharSet()
 {
     $charset = \Headers::set_charset('utf-8');
     $utf8 = "charset=utf-8";
     $this->assertEquals($charset, $utf8);
 }