3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // testutf8.php function dataEcho( $parser, $data ) { echo "$data"; } $parser = xml_parser_create(); xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, 'iso-8859-1'); xml_set_character_data_handler( $parser, 'dataEcho' ); xml_parse( $parser, '<?xml version="1.0" encoding="iso-8859-1"?><svg xmlns="http://www.w3.org/2000/svg"><title>dÜST</title></svg>' ); echo "\n";
based on cbdi2
Output for 4.3.0 - 7.2.0
dÜST