Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30189

GraphQL: HTML5 output as entities, not UTF8 characters

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • Platform > GraphQL

    Description

      The HTML5 output of richtext in GraphQL has entities, where as I would expect it to have UTF8 characters.

      Steps to reproduce:

      1. Install eZ Platform clean install
      2. Install GraphQL bundle
      3. Create new folder

      • title: псевдо-латинский
      • description: псевдо-латинский текст, который используется для веб дизайна, типографии, оборудования, и распечатки вместо английского текста для того, чтобы сделать ударение не на содержание, а на элементы дизайна. Такой текст также называется как заполнитель. Это очень удобный инструмент для моделей (макетов). Он помогает выделить визуальные элементы в документе или презентации, например текст, шрифт или разметка

      4. Open GraphiQL
      5. Execute query:

      {
        content {
          folders {
            name
            description {
              html5
            }
          }
        }
      }
      

      6. Observe entry for item newly created:

              {
                "name": "псевдо-латинский",
                "description": {
                  "html5": "<p>&#1087;&#1089;&#1077;&#1074;&#1076;&#1086;-&#1083;&#1072;&#1090;&#1080;&#1085;&#1089;&#1082;&#1080;&#1081; &#1090;&#1077;&#1082;&#1089;&#1090;, &#1082;&#1086;&#1090;&#1086;&#1088;&#1099;&#1081; &#1080;&#1089;&#1087;&#1086;&#1083;&#1100;&#1079;&#1091;&#1077;&#1090;&#1089;&#1103; &#1076;&#1083;&#1103; &#1074;&#1077;&#1073; &#1076;&#1080;&#1079;&#1072;&#1081;&#1085;&#1072;, &#1090;&#1080;&#1087;&#1086;&#1075;&#1088;&#1072;&#1092;&#1080;&#1080;, &#1086;&#1073;&#1086;&#1088;&#1091;&#1076;&#1086;&#1074;&#1072;&#1085;&#1080;&#1103;, &#1080; 
      

      What I would expect is html5 to output cyrillic characters as UTF8 text, not as HTML entities.

      Attachments

        Activity

          People

            bertrand.dunogier@ibexa.co Bertrand Dunogier
            jani.tarvainen@ibexa.co Jani Tarvainen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: