I have an html
page, this address
The charset
of the above html
file is arabic
, (if you go to view > text encoding > arabic(windows)
you can see correct page)
but by default, github server send utf-8
charset:
$ curl -I https://marsii.github.io/T3st/1.html
HTTP/1.1 200 OK
Server: GitHub.com
Content-Type: text/html; charset=utf-8
Last-Modified: Sat, 17 Dec 2016 03:55:24 GMT
and I can't change this charset
with html code, I test this parameter:
<meta http-equiv="content-type" content="text/html; charset=windows-1256">
but my page does not show correctly and charset (in view > textencoding
) is utf-8
and not changed to Arabic.
How can I show my page correct with Arabic char-set?
GitHub Pages expects pages to have been stored in UTF-8
So if you can encode your files in UTF-8 and push them back yo your GitHub repo, GitHub pages will serve them correctly.
Note that there were some recent GitHub pages changes
(markdown support, without Jekyyl; no more
gh-pages
branch if you want; relative links; theme switcher)So it is possible that some bugs do persist.
But using utf-8 files should be a good enough workaround, and will support any code point.