This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: openjade turns ° into °
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Sasha Zucker <szucker at mac dot com>
- Cc: Docbook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Thu, 30 May 2002 22:26:33 +0200
- Subject: Re: DOCBOOK-APPS: openjade turns ° into °
- References: <D735E219-7404-11D6-A783-0030656FBC06@mac.com>
Sasha Zucker wrote:
> But, my problem is that my audience may not be savvy enough to figure out
> to change their browser's encoding to UTF-8. So, they will see the
> unexpected character. My solution is to manually delete the  This
> solution may not scale to larger projects, so my question is: how do I
> OpenJade to generate output with the ° transformed into the named
> entity ° and not into the UTF-8 character for the degree symbol itself?
>
> Wow, I hope this question makes sense to someone.
You can include following code into your customization layer:
(define %html-header-tags%
'(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
charset=utf-8"))))
This will insert meta tag with encoding information into each generated
HTML file. Most browsers take encoding information from this place (but
you must be careful when serving pages from web-server, encoding
information served in HTTP headers has higher priority) and will change
encoding automatically.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz