cscore: set charset of displayed pages (#1520)

All of our strings are UTF-8, but the default charset for HTML<5 was ISO-8859-1
This commit is contained in:
Dustin Spicuzza
2018-12-31 02:49:24 -05:00
committed by Peter Johnson
parent 6105873cbe
commit 3635116049

View File

@@ -335,7 +335,8 @@ bool MjpegServerImpl::ConnThread::ProcessCommand(wpi::raw_ostream& os,
void MjpegServerImpl::ConnThread::SendHTMLHeadTitle(
wpi::raw_ostream& os) const {
os << "<html><head><title>" << m_name << " CameraServer</title>";
os << "<html><head><title>" << m_name << " CameraServer</title>"
<< "<meta charset=\"UTF-8\">";
}
// Send the root html file with controls for all the settable properties.