1--TEST-- 2XMLWriter::toStream() with encoding - test UTF-8 3--EXTENSIONS-- 4xmlwriter 5--FILE-- 6<?php 7 8$h = fopen("php://output", "w"); 9 10$writer = XMLWriter::toStream($h); 11$writer->startDocument(encoding: "UTF-8"); 12$writer->writeComment('ééé'); 13unset($writer); 14 15?> 16--EXPECT-- 17<?xml version="1.0" encoding="UTF-8"?> 18<!--ééé--> 19