KonradHoeffner / rickview

quick RDF viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fix HTML display of non-ASCII characters

KonradHoeffner opened this issue · comments

For example, the title of bb:3LGM2EnterpriseFunction is shown as "3LGM² Enterprise Function".

It looks correct when queried over curl localhost:8080/bb/3LGM2EnterpriseFunction -H "Accept:text/html", seems like both Firefox and Chrome assume the wrong encoding, but UTF-8 should be standard.

Can be fixed with <meta charset="UTF-8">.
This contradicts https://www.w3schools.com/charsets/ref_html_utf8.asp, which states that "The default character encoding in HTML-5 is UTF-8.".