Re: loadHTML/loadHTMLFile - DOM functions

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

 



Hello Rob,

Thanks for answering (so fast)... :-)

> Remember most of the functionality - other than the saveXML(), 
> saveHTML() functions - output using UTF-8 
> (which you would need to convert to what ever encoding you need).

Well I did try before loadHTML call:

$doc = new DomDocument('1.0', 'iso-8859-1'); 

Maybe it's a problem that the source webpage I'm loading has no charset declaration. It solely uses:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml";>

Don't know if that has an influence...

> How are you getting that output?

About the output I make, I don't use the saveHTML function because I just cut some parts of the source (grabbed with getElementById() and other related functions) and only need them, so I just "echo" them into a new document.


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