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

Popular posts from this blog

xslt - Substring before throwing error -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

oracle - Changing start date for system jobs related to automatic statistics collections in 11g -