1

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)

enter image description here

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?

Baba
  • 852
  • 1
  • 17
  • 31

1 Answers1

2

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.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • very thanks, i use his command in my linux and convert html page ftom windows1256 to utf8 `iconv -f windows-1256 -t utf8 FILENAME -o FILENAME` ,thank you – Baba Dec 17 '16 at 19:00