Hi Hussein,

It works! Thanks a lot!

Now a slight one: the output of the XHTML is not very well formatted. In my 
Firefox, it reads like:

<html 
xmlns="http://www.w3.org/1999/xhtml";><head><title>?XXE??DocBook</title><link 
rel="stylesheet" href="html.css" type="text/css"/><meta name="generator" 
content="DocBook XSL Stylesheets V1.73.1"/><link rel="start" href="index.html" 
title="?XXE??DocBook"/><link rel="next" href="ar01s01.html" title="1. 
XXE?????"/></head><body><div class="navheader"><table width="100%" 
summary="Navigation header"><tr><th colspan="3" 
align="center">?XXE??DocBook</th></tr><tr><td width="20%" align="left"> 
</td><th width="60%" align="center"> </th><td width="20%" align="right"> <a 
accesskey="n" href="ar01s01.html">Next</a></td></tr></table><hr/></div><div 
class="article" lang="en"><div class="titlepage"><div><div><h2 class="title"><a 
id="d0e1"/>?XXE??DocBook</h2></div><div><div class="author"><h3 
class="author"><span class="firstname">Taylor</span> <span 
class="surname">Ren</span></h3><div class="affiliation"><span 
class="orgname">Somewhere On Earth<br/></span></div></div></div><div><p 
class="pubdate">2008.09.27</p></div></div><hr/></div><div 
class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="section"><a 
href="ar01s01.html">1. XXE?????</a></span></dt><dt><span class="section"><a 
href="ar01s02.html">2. ???DocBook</a></span></dt><dt><span class="section"><a 
href="ar01s03.html">3. ????????</a></span></dt><dt><span class="section"><a 
href="ar01s04.html">4. ????</a></span></dt><dt><span class="section"><a 
href="ar01s05.html">5. ??????????</a></span></dt></dl></div></div><div 
class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td 
width="40%" align="left"> </td><td width="20%" align="center"> </td><td 
width="40%" align="right"> <a accesskey="n" 
href="ar01s01.html">Next</a></td></tr><tr><td width="40%" align="left" 
valign="top"> </td><td width="20%" align="center"> </td><td width="40%" 
align="right" valign="top"> 1. XXE?????</td></tr></table></div></body></html>

A very long, long line, isn't it?

Any way to improve the output?

Rgds!

Taylor

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: 2008?9?26? 16:15
To: Taylor Ren
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] Help me on this

Taylor Ren wrote:
>
> Just downloaded your XXE and a trial license to test the Professional
> Edition.
>
>
>
> Just one quick question, the output HTML is encoded as
> charset=ISO-8859-1 and my Chinese characters are displayed correctly in
> the web browser but the source of the HTML shows all these Chinese as:
> &12345; stuffs, which decreases the readability of the source.
>
>
>
> Is there any way to change the charset of the output HTML to UTF-8?
> (Anyway, it surprises me that the UTF-8 encoding is not the default for
> HTML output).
>
>

In my answer, I assume that you are trying to convert DocBook to HTML.

--> ISO-8859-1 is the default encoding for HTML for historical reasons
(related to the history of the *Web*, and not to the history of XMLmind
XML Editor).

--> UTF-8 is the default encoding for XHTML. Therefore if you don't mind
generating XHTML rather than HTML, the simplest thing to do is to switch
to XHTML.

Using the Professional or Evaluation Edition, this is quite simple to do:

[1] Open the document you want to convert to activate the right
configuration.
[2] Select menu item Options|Customize Configuration|Document Conversion
Preferences.
[3] Check "Generate XHTML rather than HTML".
[4] Click OK.

Of course, this is done once for all (that is, your preferences are
persistent across editing sessions).

--> If you really want to generate HTML and not XHTML, then this becomes
more complicated:

* You generate multi-page HTML:

Using the Professional or Evaluation Edition,

[1] Open the document you want to convert to activate the right
configuration.
[2] Select menu item Options|Customize Configuration|Change Document
Conversion Parameters.
[3] Select "Convert to multi-page HTML" using the combobox found at the
top of the dialog box.
[3] Click on Add
[4] Specify

chunker.output.encoding

as the name of the parameter and

UTF-8

as the value of the parameter.
[5] Click OK.
[6] Click OK.

This parametrization is done once for all.

* You generate single-page HTML:

You are out of luck because this requires customizing the DocBook
configuration by hand. How to do this is explained here:
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customizing.html


Reply via email to