Re: xml_parse() error with and € etc.. How can ifix this?
| From: | Mathijs | Date: | Mon, 15 Jan 2007 11:51:20 +0000 |
| Subject: | Re: xml_parse() error with and € etc.. How can ifix this? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-247102@lists.php.net to get a copy of this message | ||
Miguel J. Jiménez wrote:
El Mon, 15 Jan 2007 12:42:58 +0100 Mathijs <mathijs.van.veluw@smscity.com> escribió:That i know, but how can i have this automated. Because the input is out of my hands. If someone puts in the or € i have to convert this. This can be fixed by adding the the xhtml-lat1.ent some way. Would be nice if i can do this by the xml_* way or something.Hello there, When i want use parse_xml() and i have entities like in it, it gives me a entity error. This because the parser doesn't know the entity. Now i saw on the bugs site of php a way to solve this, by using xml_set_external_entity_ref_handler() with http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent. See here: http://bugs.php.net/bug.php?id=15092#c27617 But, it seems my knowledge of PHP isn't that good enough to understand what i have to do to get this to work. Can someone please help me to get this to work? Thx in advanced.Try to use number codes, ie.   instead of and ¤ instead of €