Cocoon
  1. Cocoon
  2. COCOON-2063

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.11, 2.2
    • Fix Version/s: 2.1.12, 2.2.1
    • Component/s: Blocks: HTML
    • Labels:
      None
    • Other Info:
      Patch available
    • Affects version (Component):
      Blocks: HTML - 1.0.0-M1
    • Fix version (Component):
      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());
      1. nekohtmltransformer-encoding.patch
        3 kB
        Alexander Klimetschek
      2. NekoHTMLGenerator_BRANCH2_1_X.patch
        1.0 kB
        Ellis Pritchard

        Activity

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            Alexander Klimetschek
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development