I have following basic HTML setup for org-mode
#+TITLE: Blog
#+AUTHOR: Burak Kaan Çopur
#+HTML_DOCTYPE: html5
and this gives me following head in generated HTML file
<!DOCTYPE html>
<html lang="en">
<head>
<!-- 2018-02-22 Thu 22:11 -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Blog</title>
<meta name="generator" content="Org mode">
<meta name="author" content="Burak Kaan Çopur">
You can see that charset is set to UTF-8
and language of the document is set to en
. When I write HTML manually, I use these settings and my name which includes a Ç
shows just fine. But org exported HTML files are not able to display them. What might be the problem here?
Here is what causing me the problem. I opened one of the .org
files in Notepad++ and said convert to UTF-8
. When I republish through emacs, this time it works but if I reopen the same file in emacs then it is messed up again. I have following in my configuration so I was thinking my emacs buffers are all encoded in UTF-8
;; UTF-8 as default encoding
(set-language-environment "UTF-8")
So what might be the reason for emacs to not use UTF-8
encoding?