--TEST-- XMLWriter::toStream() with encoding - test UTF-8 --EXTENSIONS-- xmlwriter --FILE-- startDocument(encoding: "UTF-8"); $writer->writeComment('ééé'); unset($writer); ?> --EXPECT--