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

        Alexander Klimetschek created issue -
        Alexander Klimetschek made changes -
        Field Original Value New Value
        Attachment nekohtmltransformer-encoding.patch [ 12357020 ]
        Ellis Pritchard made changes -
        Attachment NekoHTMLGenerator_BRANCH2_1_X.patch [ 12370212 ]
        Ellis Pritchard made changes -
        Affects Version/s 2.1.11-dev (Current SVN) [ 12312231 ]
        Jörg Heinicke made changes -
        Affects version (Component) Parent values: Blocks: HTML(10168). Level 1 values: 1.0.0-M1(10198).
        Priority Major [ 3 ] Minor [ 4 ]
        Fix version (Component) Parent values: Blocks: HTML(10240). Level 1 values: 1.0.0-RC1(10271).
        Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
        Affects Version/s 2.2 [ 12310611 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Jörg Heinicke made changes -
        Affects Version/s 2.2 [ 12310611 ]
        Jörg Heinicke made changes -
        Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Fix version (Component) Parent values: Blocks: HTML(10240). Level 1 values: 1.0.0-RC1(10271). Parent values: Blocks: HTML(10240).
        Jörg Heinicke made changes -
        Fix Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Status Open [ 1 ] Closed [ 6 ]

          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