HTML Character encoding of non-standard ASCII Characters in Chart Plugin

XMLWordPrintable

    • 2
    • Severity 2 - Major

      Steps to Reproduce:

      1. Have a browser in French language
      2. Create a page in Confluence
      3. Use a Chart Macro
      4. Have a HTML macro inside the chart Macro
      5. You can have a HTML table, plus a foreign language character inside your table. I have a sample code below.
        {html}
        <table border="1">
        <tr>
        <td>ABC</td>
        <td>50</td>
        </tr>
        <tr>
        <td>&eacute;</td>
        <td>39</td>
        </tr>
        </table>
        {html}
        

        Note the existence of &eacute ; in the table.

        Expected Results:

      Characters should be encoded. and table should be displayed.

      Actual Results:

      Characters will not be encoded, and instead there will be an error asn you can see below.

      • Error:
        Erreur du rendu de la macro 'chart' : org.dom4j.DocumentException: Error on line 2 of document : The reference to entity "eacute" must end with the ';' delimiter. Nested exception: The reference to entity "eacute" must end with the ';' delimiter.
      • Translation of Error:
        Error rendering macro 'chart': org.dom4j.DocumentException: Error on line 2 of document: The reference to entity "eacute" must end with the ';' delimiter. Nested exception: The reference to entity "eacute" must end with the ';' delimiter.

      Findings:

      This issue does not happen in English browsers.

      Workaround:

      1. Go to marketplace.atlassian.com and download version 2.0.1 of Chart Plugin.
      2. Go to your Universal Plugin Manager.
      3. Go to Manage Add-ons.
      4. Find Chart Plugin and click Uninstall button.
      5. Click Upload Plugin.
      6. Choose the downloaded .jar file for version 2.0.1, upload.

            Assignee:
            Unassigned
            Reporter:
            HosseinA
            Votes:
            9 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: