This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Problems with unicode character encoding output
- From: "Mauritz Jeanson" <mj at johanneberg dot com>
- To: "Jirka Kosek" <jirka at kosek dot cz>, "Rene Hache" <rhache at yahoo dot com>
- Cc: "docbook-apps" <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 12 Jul 2004 11:52:58 +0200
- Subject: Re: [docbook-apps] Problems with unicode character encoding output
- References: <20040711061243.32342.qmail@web60608.mail.yahoo.com> <40F24F8F.4040700@kosek.cz>
- Reply-to: "Mauritz Jeanson" <mj at johanneberg dot com>
----- Original Message -----
From: "Jirka Kosek"
>> - When I choose the UTF-8 encoding in my IE 6 browser it works fine, but it
>> doesn't stick (meaning I have to change the encoding everytime I refresh or
>> visit a new page.). I am assuming that this happen because I can get my meta
>> tag inserted.
>> -My HTML has tons of the letter "Â" everywhere. I would like them to go away.
>> :) One place where they are always located is between section numbers and
>> titles, if this makes any sense
>I think that these issues will be solved if you can get proper encoding
>flag in meta tag.
I added this to my XHTML customization layer to solve the problem:
<!-- Additional meta tag info for IE (not needed when using xsltproc) -->
<xsl:template name="user.head.content">
<xsl:if test="contains(system-property('xsl:vendor'), 'SAXON') or
contains(system-property('xsl:vendor'), 'Apache')">
<meta xmlns="http://www.w3.org/1999/xhtml" http-equiv="Content-Type"
content="text/html; charset=UTF-8"/>
</xsl:if>
</xsl:template>
/MJ
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.