Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7118

YAML import uses platform encoding instead of UTF-8

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: 5.5.4, 5.5.5, 5.6
    • Fix Version/s: 5.5.8, 5.6
    • Component/s: None
    • Labels:
      None

      Description

      This problem occurs when importing YAML files in systems that have platform encoding that is not UTF-8.
      XML is not affected as it shows an error when file with different ecoding than UTF-8 is being imported.

      Side notes

      While working on the Stories app demo, we found that YAML contents weren't imported properly, depending on the platform encoding.
      The problem is that this is how it would look otherwise:

      The part of the system that handles YAML content fails to deal with the special chars which are the same as in XML.
      Here, the problematic content was the single apostrophe:

      <p>For someone who’s traveled quite a bit [...]
      

        Attachments

        1. Bez názvu.png
          Bez názvu.png
          15 kB
        2. Bez názvu2.png
          Bez názvu2.png
          82 kB
        3. yaml.png
          yaml.png
          674 kB

          Issue Links

            Activity

              People

              • Assignee:
                rsiska Robert Šiška
                Reporter:
                mmichel Maxime Michel
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: