Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-26

Handle latin1 (and other charsets)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-alpha-8
    • None
    • None

    Description

      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 );
        }

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              juam Juan F. Codagnone
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: