Re: loadHTML/loadHTMLFile - DOM functions [solved]

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

 



Hello Rob,

> Try this line:

> $this->ticker .= utf8_decode($child_elements->item($j)->textContent);

> Your original HTML document is ISO-8859-1, so when you want the text 
> I think you want to convert the UTF-8 (Internally DOM document 
> works with UTF-8) to ISO-8859-1. Just using the utf8_decode 
> function here from ext/xml. This elminates those  characters
> you were getting.

Well done! That is it!

The <img>-Tag thing is still a mistery to me, but as I pass them in my javascript part, I don't really care :-)


Thank you a lot

LS
-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail

-- 
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