Re: problem with german special char 'ß' in wddx (expat r elated)!

From: Date: Tue, 04 Apr 2000 15:24:55 +0000
Subject: Re: problem with german special char 'ß' in wddx (expat r elated)!
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-13093@lists.php.net to get a copy of this message
On Tue, 04 Apr 2000, Thies C . Arntzen wrote: > found the problem - encoding (ext/xml has some code to handle > this!) > > using the php-expat interface works: > > <? > error_reporting(-1); > > $a = "<wddxPacket > version='1.0'><header/><data><string>kuß</string></data></wddxPacket>"; > > function cdata($parser, $value) { > echo "cdata $value\n"; > } > > function xstart($parser, $tgname, $attrs) { > //echo "xstart "; var_dump($parser, $tgname, $attrs); > } > > function xend($parser, $tgname) { > //echo "xend "; var_dump($parser, $tgname); > } > > $xml_parser = xml_parser_create(); > xml_set_element_handler($xml_parser, "xstart", "xend"); > xml_set_character_data_handler($xml_parser, "cdata"); > xml_parse($xml_parser, $a); > ?> > > will you have a look at it or should i? If you have time, please do. I'm pretty busy today... -Andrei Any sufficiently advanced bug is indistinguishable from a feature. -- Rich Kulawiec

« previous php.version4 (#13093) next »