11ty / eleventy-plugin-rss

A pack of Eleventy plugins for generating an RSS feed.
https://www.11ty.dev/docs/plugins/rss/
MIT License
92 stars 22 forks source link

Encoding issue on JSON feed #19

Closed arnlaugsson closed 2 years ago

arnlaugsson commented 3 years ago

When looking at the output of the XML and the JSON feed there is a difference. I have the metadata setup so that my name appears as the author, "Skúli". The file is has UTF-8 formatting.

The XML feed displays this correctly, but the JSON feed has some encoding issues.

{ 
    ...
    "author": {
        "name": "Skúli Arnlaugsson",
    ...
    }
}

Have not been able to find what causes this.

zachleat commented 3 years ago

Seems okay here, hmm:

{
  "version": "https://jsonfeed.org/version/1",
  "title": "My Blog about Boats",
  "home_page_url": "https://example.com/",
  "feed_url": "https://example.com/feed.json",
  "description": "I am writing about my experiences as a naval navel-gazer.",
  "author": {
    "name": "Skúli",
    "url": "https://example.com/about-boaty/"
  },
  "items": [{
      "id": "https://example.com/post.html",
      "url": "https://example.com/post.html",
      "title": "Sample Post",
      "content_html": "First post. <a href=\"test.html\">Test link</a>.\n\n<img src=\"hi.png\">\n\n<img src=\"hi2.png\"/>\n\n<br>\n\n<br/>\n",
      "date_published": "2018-01-28T15:23:58-06:00"
    }

  ]
}
zachleat commented 2 years ago

Ah, unfortunately I’m going to need a reproduction to be able to move forward here, sorry!