pinguinone
pinguinone

Reputation: 473

Jekyll Markdown html entity

I have a Jekyll website and I ofter use markdown (with kramdown) syntax for the posts. I want that if I write in a .md file:

Lui esaminò la città e la trovò molto bella mentre ora è uno schifo

The result html will be:

Lui esaminò la città e la trovò molto bella mentre ora è uno schifo

Now it doesn't put the html entity, better it changes only lsquo rsquo ldquo and rdquo How can achieve this results?

Upvotes: 1

Views: 549

Answers (2)

Frank Lin
Frank Lin

Reputation: 51

I also encountered this issue at the very beginning when dealing with Chinese characters.

You may need to add <meta charset="utf-8"> in <head>...</head> part of your template layout, and then html will display correctly in the browser.

Upvotes: 0

Mr. Hugo
Mr. Hugo

Reputation: 12582

I would use utf-8 encoding in the HTML to prevent this problem.

Upvotes: 0

Related Questions