baris / goit

Git web interface in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

encoding confusion

bukzor opened this issue · comments

Loading up the index.html results in a search box with placeholder text of "Search…". This is a result of encoding "Search…" with utf8, and then decoding it with cp1252 (the "latin1" of the web).

If I'm not mistaken, all that is needed is a meta-content-type header that specifies utf8 encoding.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">