OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] HTML output contains ""


I can't tell what your PHP framework is doing to the HTML, but I suspect it
is the source of both problems.  Do you generate the HTML with XSLT and then
feed it into the PHP, or does the PHP execute the XSLT process?  Can you
examine the HTML before it is processed by PHP?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Frans Englich" <frans.englich@telia.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, August 15, 2004 6:44 PM
Subject: Re: [docbook-apps] HTML output contains ""


> On Sunday 15 August 2004 23:06, Bob Stayton wrote:
> > These letters show up in HTML whenever your HTML is encoded as UTF-8 but
> > the browser thinks it is encoded in ISO-8859-1.  This mismatch could
come
> > from:
> >
> > a. The HTML not including a charset meta tag.
> >
> > b.  The HTML including a wrong charset meta tag.
> >
> > c.  The HTTP server providing an incorrect charset property in the http
> > header that overrides the charset meta tag in the HTML.
> >
> > Does your HTML have a charset meta tag?
> > Do you get the same results when viewing it locally instead of through a
> > server?
>
> I'm integrating the docbook into a website, where a PHP framework does
silly
> copy&paste of html,head,body tags; the charset and encoding information is
> not set by the docbook code, but the PHP code(and the output is the same
for
> my two projects). Specifically, it looks like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> (...)
>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>
> Looks good to me.
>
> When viewing the page source via a text editor(vim) as well as locally,
the
> characters are there. It appears to not be an encoding/character mapping
> issue.
>
> The other thread of mine is perhaps related to this, considering the
character
> have taken the navigation buttons' place.
>
>
> Thanks,
>
> Frans
>
>
>
>
>




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]