Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2063

NekoHTMLTransformer needs to set the default-encoding of the current system to work properly with UTF-8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.11, 2.2
    • 2.1.12, 2.3.0
    • Blocks: HTML
    • None
    • Patch available
    • Blocks: HTML - 1.0.0-M1
    • Blocks: HTML

    Description

      The NekoHTMLTransformer uses the cyberneko HTMLConfiguration for tidying html. Unfortunately it does not use the system's current encoding as default, instead you have to set a property to set your encoding. But this varies from one OS to another, so the best solution is to set this property automatically in the NekoHTMLTransformer depending on what Java uses as defaultCharset:

                  config.setProperty("http://cyberneko.org/html/properties/default-encoding", Charset.defaultCharset().name());

      Attachments

        1. NekoHTMLGenerator_BRANCH2_1_X.patch
          1.0 kB
          Ellis Pritchard
        2. nekohtmltransformer-encoding.patch
          3 kB
          Alexander Klimetschek

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            alexander.klimetschek Alexander Klimetschek
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: