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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users

          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:

              Slack

                Issue deployment