Uploaded image for project: '{RETIRED} XWiki Skin Extensions'
  1. {RETIRED} XWiki Skin Extensions
  2. XSKINX-5

JS should be forced to UTF-8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2
    • 1.1
    • Plugin
    • None
    • bugfixingweek

    Description

      The JsxAction is converting automatically to UTF-8 although you can run your wiki in other encoding. This makes it impossible to put accents in a JS file in a ISO wiki.

      The code is JsxAction.java

      try

      { response.setContentLength(result.getBytes("UTF-8").length); response.getOutputStream().write(result.getBytes("UTF-8")); }

      catch (IOException ex)

      { LOG.warn("Failed to send JSX content: " + ex.getMessage()); }

      Attachments

        Activity

          People

            sdumitriu Sergiu Dumitriu
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: