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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.6.2
    • 9.6.1
    • Components
    • Security Level: Jimmy
    • ZK 9.6.1

      Java 17

      Spring Boot 2.5.9

      ZK Spring Boot 2.3.0

    • None

      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

       

            DevChu DevChu
            YannUnil YannUnil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: