Hi all
I am having trouble rendering non-breaking spaces. I have an XHTML file
with   entities as non-breaking spaces (because could not be
parsed with the SAXParser without an error). When I write the file using
the HTMLWriter with no OutputFormat or using an OutputFormat with "UTF-8"
encoding, all the non-breaking spaces are rendered as � ('A' with a ^ over
it, or an A Circumflex).
If I use "UTF-16" encoding, the non-breaking spaces are actually converted
into _spaces_, so any series of non-breaking spaces will collapse into a
single space when rendered on a browser.
Is there a way of keeping the non-breaking spaces as the actual entity of
either   or ?
Also, any & loses any spacing either side of it. For example, if I
had something like "Peaches & Cream", it will render in HTML as
"Peaches&Cream" How would I be able to keep the spaceing?
Thanks
--Andrew
------------------
org.dom4j.io.OutputFormat format = new org.dom4j.io.OutputFormat();
format.setEncoding("UTF-16");
format.setTrimText(false);
format.setNewlines(true);
HTMLWriter writer = new HTMLWriter(outputStream, format);
writer.write(this.template);
writer.flush();
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user