protected function _textWindowOutput($name, $msg, $html = false) { $GLOBALS['browser']->downloadHeaders($name, 'text/' . ($html ? 'html' : 'plain') . '; charset=' . 'UTF-8', true, strlen($msg)); echo $msg; exit; }