[dev] Fwd: [commits] Horde branch master updated. 00331e6d35dad24239d687ea741d6d4e5b2a17a9

Gonçalo Queirós goncalo.queiros at portugalmail.net
Fri Nov 19 19:50:23 UTC 2010


>
>
> -------- Original Message --------
>
> -----------------------------------------------------------------------
>
> commit 00331e6d35dad24239d687ea741d6d4e5b2a17a9
> Author: Michael M Slusarz <slusarz at curecanti.org>
> Date:   Thu Nov 11 13:59:41 2010 -0700
>
>     Remove <?xml tag artifact from HTML DOM output
>
>  framework/Util/lib/Horde/Domhtml.php |   17 +++++++++++++++--
>  1 files changed, 15 insertions(+), 2 deletions(-)
>
> http://git.horde.org/diff.php/framework/Util/lib/Horde/Domhtml.php?rt=horde-git&r1=b4761545bec983cefba178095e0623ade3ff85c7&r2=00331e6d35dad24239d687ea741d6d4e5b2a17a9
>
>
> __
> commits mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: commits-unsubscribe at lists.horde.org
I had a problem with the previous code, that is still showing up with
this one.
I think its related to centOs libxml library, because on my computer
(Ubuntu) all emails are ok, but on server the encoding is bad. From what
i learn, the way to solve this is by including the <meta> before passing
the text to loadHTML.
I attached my solution. It adds the <meta...> after <head> or if <head>
doesn't exist, it inserts <head><meta...></head>  after <html>. If
<html> is not present, just send the text to loadHTML.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: xml_charset.diff
Type: text/x-patch
Size: 1509 bytes
Desc: not available
URL: <http://lists.horde.org/archives/dev/attachments/20101119/009f97f4/attachment.bin>


More information about the dev mailing list