[doxia-dev] [jira] Created: (DOXIA-26) Handle latin1 (and other charsets)

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[doxia-dev] [jira] Created: (DOXIA-26) Handle latin1 (and other charsets)

JIRA jira@codehaus.org
Handle latin1 (and other charsets)

         Key: DOXIA-26
         URL: http://jira.codehaus.org/browse/DOXIA-26
     Project: doxia
        Type: Bug
    Reporter: Juan F. Codagnone

files with latin1 (á é í...) characters/charsets  don't work in doxia (non ascii chars are writted as ?).  This souldn't be too dificult to implement: just set the charset to the writers:
 The hard part is configuration.

A fixed example:

Index: src/main/java/org/codehaus/doxia/site/renderer/DefaultSiteRenderer.java
--- src/main/java/org/codehaus/doxia/site/renderer/DefaultSiteRenderer.java    (revision 135)
+++ src/main/java/org/codehaus/doxia/site/renderer/DefaultSiteRenderer.java    (working copy)
@@ -264,7 +255,7 @@

         RenderingContext renderingContext = new RenderingContext( moduleBasedir, doc, decorationModel );

-        return new XhtmlSink( new FileWriter( outputFile ), renderingContext, directives );
+        return new XhtmlSink( new OutputStreamWriter( new FileOutputStream( outputFile), "ISO-8859" ), renderingContext, directives );

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see: