--TEST-- XMLWriter::toStream() with encoding - test SHIFT_JIS --EXTENSIONS-- xmlwriter --FILE-- startDocument(encoding: "SHIFT_JIS"); $writer->writeComment("\u{3041}\u{3041}\u{3041}"); unset($writer); ?> --EXPECT--