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

YAML import uses platform encoding instead of UTF-8

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.5.8, 5.6
    • 5.5.4, 5.5.5, 5.6
    • None
    • 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 [...]
      

      Checklists

        Acceptance criteria

        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

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD