[PLUG] Re: WYSIWYG HTML editor (redux.?)
Wil Cooley
wcooley at nakedape.cc
Fri Feb 4 17:07:14 UTC 2005
In gmane.org.user-groups.linux.portland, you wrote:
> On Fri, 4 Feb 2005, Wil Cooley wrote:
>
>> Perhaps this is a better solution: Ensure that your web server is
>> using the same charset in the HTTP headers and the document itself
>> is using. At least, that's what people are telling me, although I
>> haven't entirely sorted it out yet.
>
> My bias is toward moving all my web pages to UTF-8, so here's what I
> did...
>
> First, I made sure that the DocBook stylesheets produced UTF-8 output.
> I did that by writing a custom wrapper around the default xhtml
> stylesheet:
>
><xsl:stylesheet
> version='1.0'
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://www.w3.org/1999/xhtml">
>
> <xsl:import
> href="/usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl"/>
>
> <xsl:output
> method="xml"
> encoding="UTF-8"
> indent="no"
> doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
>
> ...
>
></xsl:stylesheet>
>
> Second, I set Apache up to serve UTF-8 by default:
>
> AddDefaultCharset UTF-8
>
> So the files are Unicode-encoded and the web server lets clients know
> about it:
Thanks; I'll give that a shot. I don't know enough about XSLT to have
figured that out on my own. What I did instead was put 'AddDefaultCharet
iso-8859-1' in a <Directory/> block and now everything seems copacetic.
Apache 2 (or at least the config shipped by RHEL/CentOS) defaults to UTF-8.
Wil
--
Wil Cooley wcooley at nakedape.cc
Naked Ape Consulting http://nakedape.cc
* * * * Linux, UNIX, Networking and Security Solutions * * * *
More information about the PLUG
mailing list