You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2006/04/07 03:49:48 UTC
[jira] Closed: (DOXIA-26) Handle latin1 (and other charsets)
[ http://jira.codehaus.org/browse/DOXIA-26?page=all ]
Brett Porter closed DOXIA-26:
-----------------------------
Assign To: Brett Porter
Resolution: Fixed
Fix Version: 1.0-alpha-8
> Handle latin1 (and other charsets)
> ----------------------------------
>
> Key: DOXIA-26
> URL: http://jira.codehaus.org/browse/DOXIA-26
> Project: doxia
> Type: Bug
> Reporter: Juan F. Codagnone
> Assignee: Brett Porter
> Fix For: 1.0-alpha-8
>
>
> 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:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira