Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-77541

Form Data Provider shows wrong character encoding

    Details

      Description

      Data Providers are showing wrong characters in forms. Basically, seems like json WS call is bringing json data with an encoding different than UTF-8.

      Steps to reproduce in master/7.0.x:

      1. Start a portal and login with administrator user.
      2. Create user with firstName field value: 'jamón'
      3. Create a data provider (#adding-and-configuring-a-data-provider) adding next configuration:
        Field Value
        Name dp example
        URL http://localhost:8080/api/jsonws/user/get-company-users/company-id/20100/start/-1/end/-1
        User Name Admin user, e.g.: test@liferay.com
        Password Admin password

        Only in master Inside 'Outputs section':

        Field Value
        Label id
        Path firstName
        Type List

        Only in 7.0.x:

        Field Value
        Displayed JSON Attribute firstName
        Stored JSON Attribute id
      4. Create a form using data provider as a 'select' field (#using-a-data-provider-in-a-select-field)
      5. Create new page; Add form application; and select new form created in step 4.

      Expected behavior:
      Select field shows option field 'jamón' with correct characters.
      Actual behavior:
       Select field shows option field 'jamón' but 'o´' character is wrong.

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 41 weeks, 4 days ago

                Packages

                Version Package
                7.0.0 DXP FP40
                7.0.0 DXP SP7
                7.0.5 CE GA6
                7.0.X
                7.1.0 M1
                7.1.X
                Master