Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jekyll markdown UTF-8

i have been working on jekyll on my personal website and for my blogs, i have come across a problem with UTF-8 encoding.

It works perfectly on my local machine but it doesn't work well in production. https://github.com/freedomgw/thehacklife/blob/gh-pages/_posts/2013-12-14-the-power-of-ajax.md

This is what it actually looks like on live.. http://thehacklife.com/posts/the-power-of-ajax/

I am just not entirely sure how to fix this on github pages... since github are the ones hosting the site. Also, I am using sublime and I am saving it in UTF-8 encoding in markdown format.

Any suggestions are appreciated

like image 486
freedom Avatar asked Dec 19 '13 05:12

freedom


1 Answers

I had the same issue. My apostrophes were showing up as ’ . The solution is to declare the encoding explicitly with <meta http-equiv='Content-Type' content='text/html; charset=utf-8' />

like image 92
Harry Moreno Avatar answered Oct 19 '22 21:10

Harry Moreno