Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5126

Apostrophe (French quote character) is displayed as Hex character code in chosenbox emptyMessage

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.6.1
    • Fix Version/s: 9.6.2
    • Component/s: Components
    • Security Level: Jimmy
    • Environment:

      ZK 9.6.1

      Java 17

      Spring Boot 2.5.9

      ZK Spring Boot 2.3.0

      Description

      Steps to Reproduce

      Create a chosen box with an empty message content containing an apostrophe character ('), for example this french content :

      <chosenbox emptyMessage="rôle dans l'organisation" />
      

      Current Result

      Apostrophe character is not displayed correctly, the hex character code is displayed instead.

      Text is renderred as

      "rôle dans l&#x27;organisation".
      

      Expected Result

      Apostrophe is correctly encoded.

      Text is renderred as "rôle dans l'organisation".

      Debug Information

      Same result on Firefox, Chrome, Edge, and Brave browsers.

      I have tried to use HTML entity ' or decimal code ' without any success.

      I don't have any problem with other components.

      A fiddle : https://zkfiddle.org/sample/28i9fm6/1-chosenbox-emptyMessage-apostrophe-encoding

      Workaround

       

        Attachments

          Activity

            People

            Assignee:
            DevChu DevChu
            Reporter:
            YannUnil YannUnil
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: