setCharset() публичный Метод

public setCharset ( $charset )
Пример #1
0
 public function testSetCharset()
 {
     $response = new THttpResponse();
     $response->init(null);
     $response->setCharset('UTF-8');
     self::assertEquals('UTF-8', $response->getCharset());
     $response->setCharset('ISO8859-1');
     self::assertEquals('ISO8859-1', $response->getCharset());
 }