Gentoo Archives: gentoo-doc

From: Xavier Neys <neysx@g.o>
To: gentoo-doc@l.g.o
Subject: Re: [gentoo-doc] Strange pipe char after xsltproc
Date: Wed, 05 Oct 2005 09:30:55
Message-Id: 43439D28.8070300@gentoo.org
In Reply to: [gentoo-doc] Strange pipe char after xsltproc by Fabrizio Prosperi
1 Fabrizio Prosperi wrote:
2 > Hi all,
3 >
4 > I am a new italian translator, and I have this strange behaviour of
5 > xsltproc when I try to convert to html the XML files of a manual.
6 > I followed the instructions of the
7 > http://www.gentoo.org/proj/en/gdp/doc/doc-tipsntricks.xml
8 > but when I run
9 > xsltproc --novalid test/guide.xsl alsa-guide.xml > test/alsa-guide.html
10 > I get a strange pipe char in the html file which then turns in an Â
11 > i.e. <p class="secthead"><a name="doc_chap1_sect1">What is ALSA?Â
12 > </a></p>
13 > You can see this result yourself pointing to my machine
14 > http://tosh.dyndns.biz/~fprosper/Gentoo/alsa-guide.html
15 >
16 > I guess it has something to do with encoding or charset, but I recoded
17 > to UTF-8 and this didn't solve it.
18
19
20 $ curl -I /dev/null http://tosh.dyndns.biz/~fprosper/Gentoo/alsa-guide.html
21
22 HTTP/1.1 200 OK
23 Date: Wed, 05 Oct 2005 09:00:03 GMT
24 Server: Apache
25 Last-Modified: Wed, 05 Oct 2005 08:38:49 GMT
26 ETag: "d4e7b-bfad-bcc3b840"
27 Accept-Ranges: bytes
28 Content-Length: 49069
29 Content-Type: text/html; charset=ISO-8859-1
30
31
32 Your file *is* utf-8 but your web server says it is ISO-8859-1, so your
33 browser shows char &#160; as 'Â ' instead of a non-breakable space.
34 Switch encoding to utf-8 in your browser and you'll see.
35
36 Fix your web server config, or use the current xsl instead of that Jurassic
37 guide.xsl :)
38
39
40 Hth,
41 --
42 / Xavier Neys
43 \_ Gentoo Documentation Project
44 / French & Internationalisation Lead
45 \ http://www.gentoo.org/doc/en
46 /\
47
48
49 --
50 gentoo-doc@g.o mailing list

Replies

Subject Author
Re: [gentoo-doc] Strange pipe char after xsltproc Fabrizio Prosperi <fprosper@×××××××××.it>