Re: domxml_new_doc() utf8 encoding

From: Date: Sat, 25 Jan 2003 01:50:38 +0000
Subject: Re: domxml_new_doc() utf8 encoding
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-133080@lists.php.net to get a copy of this message
Hi, Saturday, January 25, 2003, 4:04:38 AM, you wrote: ØV> how do i create ØV> <?xml version="1.0" encoding="utf8"?>? ØV> domxml_new_doc("1.0") only creates ØV> <?xml version="1.0"?> ØV> vennlig hilsen ØV> Øyvind ØV> STOPP BARNEPORNO PÅ INTERNET: ØV> Send tips om barneporno til Redd Barna: ØV> children@risk.online.no ØV> Øyvind Vestavik ØV> oyvindve at idi dot ntnu dot no ØV> ICQ-number: 218699329 ØV> mobil: 41422911 ØV> -- ØV> PHP General Mailing List (http://www.php.net/) ØV> To unsubscribe, visit: http://www.php.net/unsub.php One way to force it: <? ob_start(); echo '<?xml version="1.0" encoding="utf8"?><cds/>'; $buffer = ob_get_contents(); ob_end_clean(); $dom = domxml_open_mem($buffer); //check echo '<pre>'; echo htmlentities($dom->dump_mem(true)); echo '</pre>'; ?> -- regards, Tom

« previous php.general (#133080) next »