← Prev in month ← Prev in thread

DOCBOOK-APPS: openjade turns ° into °

From
Sasha Zucker <>
Date
2002-05-30T19:38:39+00:00
ID
Thread
DOCBOOK-APPS: openjade turns &deg; into &Acirc;&deg;
I am publishing documents with DocBook XML 4.1.2 with OpenJade 1.3 and the 
good ol' nwalsh dsssl stylesheets 1.76, all on MacOS X 10.1. My 
environment has:
export SP_ENCODING='XML'
export SP_CHARSET_FIXED='YES'

My problem is:

If I use the &deg; entity in file.xml and generate html with the command:

openjade -V nochunks -t sgml -d path/to/html.dsl /path/to/xml.dcl foo.xml 
 > foo.html

And I look at file.html in Netscape, the degree symbol appears with a 
strange character in front of it, &Acirc;&deg; However, when I switch 
Netscape's encoding to UTF-8, the &Acirc; disappears and the degree symbol 
looks normal. So, OpenJade is generating output in UTF-8, no?

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 &Acirc; This 
solution may not scale to larger projects, so my question is: how do I 
OpenJade to generate output with the &deg; transformed into the named 
entity &deg; and not into the UTF-8 character for the degree symbol itself?

Wow, I hope this question makes sense to someone.

thanks,

s

--
Sasha Zucker

GPG Public Key:
http://pgp.dtype.org:11371/pks/lookup?op=get&search=0x0D53D013

GPP Key Fingerprint:
2582 F0D2 824C 0F18 D7B2  028C 8478 6087 0D53 D013
← Prev in month ← Prev in thread