Re: xml_parse() error with   and € etc.. How can i fix this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



El Mon, 15 Jan 2007 12:42:58 +0100
Mathijs <mathijs.van.veluw@xxxxxxxxxxx> escribió:

> Hello there,
> 
> When i want use parse_xml() and i have entities like &nbsp; in it, it 
> gives me a entity error.
> 
> This because the parser doesn't know the &nbsp; 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. &#160; instead of &nbsp; and &#164;
instead of &euro;


-- 
Miguel J. Jiménez
Área de Internet/XSL
migueljose.jimenez@xxxxxxxxxxx

----------------------------------------------------

ISOTROL
Edificio BLUENET, Avda. Isaac Newton nº3, 4ª planta.
Parque Tecnológico Cartuja '93, 41092 Sevilla.
Teléfono: 955 036 800 - Fax: 955 036 849
http://www.isotrol.com

"Siempre intento salvar una vida al día. Normalmente es la mía"
(John Crichton, FARSCAPE 1x07)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux