From chris at beowulf.net Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============2193646949627920248==" MIME-Version: 1.0 From: Chris Stankaitis To: docs at lists.fedoraproject.org Subject: Formatting Question Date: Thu, 14 Oct 2004 09:26:46 -0400 Message-ID: <416E7E96.8080306@beowulf.net> --===============2193646949627920248== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Please forgive this question, I am sure it lands in the RTFM category = but I am having an issue which I would like some help with. 1) I checked out the document's repository from CVS and created a new = document 2) I replicated the directory structure and made the needed changes to = the Makefile (document name etc.) 3) I ran a make in my new doc's dir and it created the HTML. Here is the issue. When I browse to the document locally using Mozilla everything looks = great, to be complete I tar'ed the dir up and sent it over to our = webserver. When I browse to the document on the webserver it seems to = add additional formatting which is causing my document to display a = bunch of question marks all over the place, and little black boxes. = Even viewing the source you can see the problem. Source viewed when document loaded locally: Chapter 4. Adding Users <td width=3D"40%" align=3D"right"> <a accesskey=3D"n" href=3D"ch05.html">Ne= xt Source viewed when document viewd over apache server: <title>Chapter=EF=BF=BD4.=EF=BF=BDAdding align=3D"right">=EF=BF=BD<a accesskey=3D"n" href=3D"ch05.html"> Can anyone point me in the right direction to fix this problem? --Chris --===============2193646949627920248==-- From paul at frields.com Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============4192349769445155765==" MIME-Version: 1.0 From: Paul W. Frields <paul at frields.com> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 10:38:59 -0400 Message-ID: <1097764739.5988.4.camel@berlin.east.gov> In-Reply-To: 416E7E96.8080306@beowulf.net --===============4192349769445155765== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-14 at 09:26, Chris Stankaitis wrote: [...snip...] > When I browse to the document locally using Mozilla everything looks = > great, to be complete I tar'ed the dir up and sent it over to our = > webserver. When I browse to the document on the webserver it seems to = > add additional formatting which is causing my document to display a = > bunch of question marks all over the place, and little black boxes. = > Even viewing the source you can see the problem. > = > Source viewed when document loaded locally: > = > <title>Chapter 4. Adding Users > <td width=3D"40%" align=3D"right"> <a accesskey=3D"n" href=3D"ch05.html">= Next > = > Source viewed when document viewd over apache server: > = > <title>Chapter=EF=BF=BD4.=EF=BF=BDAdding > align=3D"right">=EF=BF=BD<a accesskey=3D"n" href=3D"ch05.html"> What does the "Page Info" tell you about the document? For instance, when I browse a local file it is seen as ISO-8859-1 encoding, text/html MIME type. Is that what you see from the Apache-served file? If not, the httpd.conf file might be the place to start. The version of Apache you are running might be an issue. I am out on a limb here since I don't run Web servers for a living. But, if in looking at the actual source of the file (I mean at a shell, using od or xxd, rather than post-Mozilla), you see that the file clearly contains spaces (0x20 ASCII), and not some other wackiness, the server is obviously to blame. (Well, it *seems* obvious to me, but someone more informed may have a different, and probably better, take on this.) -- = Paul W. Frields, RHCE --===============4192349769445155765==-- From chris at beowulf.net Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============1637910993045064476==" MIME-Version: 1.0 From: Chris Stankaitis <chris at beowulf.net> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 12:28:29 -0400 Message-ID: <416EA92D.3030301@beowulf.net> In-Reply-To: 1097764739.5988.4.camel@berlin.east.gov --===============1637910993045064476== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > What does the "Page Info" tell you about the document? For instance, > when I browse a local file it is seen as ISO-8859-1 encoding, text/html > MIME type. Is that what you see from the Apache-served file? If not, the > httpd.conf file might be the place to start. The version of Apache you > are running might be an issue. > = Yes, that was exactly the problem... the html was encoding in ISO, but = on Apache it was trying to use UTF-8. I had to make modifications to the main-html.xsl by adding: <xsl:param name=3D"chunker.output.encoding" select=3D"'UTF-8'"/> to tell /usr/share/sgml/docbook/xsl-stylesheets/html/manifest.xsl to not = convert the html to ISO. --Chris. --===============1637910993045064476==-- From chris at beowulf.net Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============2170579517017907889==" MIME-Version: 1.0 From: Chris Stankaitis <chris at beowulf.net> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 12:37:56 -0400 Message-ID: <416EAB64.9050205@beowulf.net> In-Reply-To: 416EA92D.3030301@beowulf.net --===============2170579517017907889== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Chris Stankaitis wrote: >> What does the "Page Info" tell you about the document? For instance, >> when I browse a local file it is seen as ISO-8859-1 encoding, text/html >> MIME type. Is that what you see from the Apache-served file? If not, the >> httpd.conf file might be the place to start. The version of Apache you >> are running might be an issue. >> > = > Yes, that was exactly the problem... the html was encoding in ISO, but = > on Apache it was trying to use UTF-8. > = > I had to make modifications to the main-html.xsl by adding: > = > <xsl:param name=3D"chunker.output.encoding" select=3D"'UTF-8'"/> > = > to tell /usr/share/sgml/docbook/xsl-stylesheets/html/manifest.xsl to not = > convert the html to ISO. > = > --Chris. > = UTF-8 is a standard, why is the Fedora Doc's program not using UTF-8 as = it's default encoding type? --===============2170579517017907889==-- From paul at frields.com Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============4117908487209432972==" MIME-Version: 1.0 From: Paul W. Frields <paul at frields.com> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 15:27:48 -0400 Message-ID: <1097782068.8319.1.camel@bettie.internal.frields.org> In-Reply-To: 416EAB64.9050205@beowulf.net --===============4117908487209432972== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-14 at 12:37, Chris Stankaitis wrote: > Chris Stankaitis wrote: > >> What does the "Page Info" tell you about the document? For instance, > >> when I browse a local file it is seen as ISO-8859-1 encoding, text/html > >> MIME type. Is that what you see from the Apache-served file? If not, t= he > >> httpd.conf file might be the place to start. The version of Apache you > >> are running might be an issue. > >> > > = > > Yes, that was exactly the problem... the html was encoding in ISO, but = > > on Apache it was trying to use UTF-8. > > = > > I had to make modifications to the main-html.xsl by adding: > > = > > <xsl:param name=3D"chunker.output.encoding" select=3D"'UTF-8'"/> > > = > > to tell /usr/share/sgml/docbook/xsl-stylesheets/html/manifest.xsl to no= t = > > convert the html to ISO. > > = > > --Chris. > > = > = > UTF-8 is a standard, why is the Fedora Doc's program not using UTF-8 as = > it's default encoding type? I don't know of any reasons why not... even older Apache can serve out UTF-8 without a problem, AFAIK. Sounds like a candidate for a new bug in Bugzilla, eh? -- = Paul W. Frields, RHCE --===============4117908487209432972==-- From tfox at redhat.com Thu Jun 4 22:06:11 2015 Content-Type: multipart/mixed; boundary="===============8501911408269605574==" MIME-Version: 1.0 From: Tammy Fox <tfox at redhat.com> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 15:54:38 -0400 Message-ID: <1097783678.4095.67.camel@localhost.localdomain> In-Reply-To: 416EAB64.9050205@beowulf.net --===============8501911408269605574== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Thu, 2004-10-14 at 12:37 -0400, Chris Stankaitis wrote: > Chris Stankaitis wrote: > >> What does the "Page Info" tell you about the document? For instance, > >> when I browse a local file it is seen as ISO-8859-1 encoding, text/html > >> MIME type. Is that what you see from the Apache-served file? If not, t= he > >> httpd.conf file might be the place to start. The version of Apache you > >> are running might be an issue. > >> > > = > > Yes, that was exactly the problem... the html was encoding in ISO, but = > > on Apache it was trying to use UTF-8. > > = > > I had to make modifications to the main-html.xsl by adding: > > = > > <xsl:param name=3D"chunker.output.encoding" select=3D"'UTF-8'"/> > > = > > to tell /usr/share/sgml/docbook/xsl-stylesheets/html/manifest.xsl to no= t = > > convert the html to ISO. > > = > > --Chris. > > = > = > UTF-8 is a standard, why is the Fedora Doc's program not using UTF-8 as = > it's default encoding type? The original xsl I wrote had UTF-8 specified. Then I removed it for some reason I can't remember now -- perhaps so it would work with the Fedora website? Let me change it to UTF-8 and post it on a test box for the website and see what happens. Tammy --===============8501911408269605574==-- From chris at beowulf.net Thu Jun 4 22:06:12 2015 Content-Type: multipart/mixed; boundary="===============2237578449109347840==" MIME-Version: 1.0 From: Chris Stankaitis <chris at beowulf.net> To: docs at lists.fedoraproject.org Subject: Re: Formatting Question Date: Thu, 14 Oct 2004 16:14:47 -0400 Message-ID: <416EDE37.3020904@beowulf.net> In-Reply-To: 1097783678.4095.67.camel@localhost.localdomain --===============2237578449109347840== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Tammy Fox wrote: > = > The original xsl I wrote had UTF-8 specified. Then I removed it for some > reason I can't remember now -- perhaps so it would work with the Fedora > website? Let me change it to UTF-8 and post it on a test box for the > website and see what happens. > = > Tammy > = Looking on a few Fedora Core 1 boxes we have here as well as some = RHEL-3ES/WS boxes we use as web servers it looks like the httpd.conf has = a default config option that sets UTF-8: <snip> AddDefaultCharset UTF-8 </snip> If your docs display the encoding issue on the test box check the = httpd.conf for the above line. --Chris --===============2237578449109347840==--