Jekyll JSON incorrect character encoding -
i'm using simple-jekyll-search create search page posts in jekyll.
the json file search generated by:
[ {% post in site.posts %} { "title" : "{{ post.title | escape }}", "category" : "{{ post.category }}", "tags" : "{{ post.tags | join: ', ' }}", "url" : "{{ site.baseurl }}{{ post.url }}", "date" : "{{ post.date | date: '%y %b %-d' }}", "content" : "{{ post.content | strip_html | strip_newlines }}" } {% unless forloop.last %},{% endunless %} {% endfor %} ]
the problem characters incorrectly encoded in json file (though appear correctly in html). "you’ll" appears "you’ll" in json, example. there's issue incompatibility of character encoding, i'm not sure fix it. since it's incorrect in json, i'm guessing it's somewhere in template generate json, can't life of me figure out how.
Comments
Post a Comment