﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13187	[PATCH] Set encoding of remote control error pages to UTF-8 and HTML-escape the localized messages	floscher	floscher	"Currently the error pages of the remote control are delivered to the browser without information about the encoding (neither via HTTP-header nor via <meta>-tag in the HTML), while in fact the pages are encoded with UTF-8. So these pages are displayed incorrectly when the user has not set UTF-8 as default encoding in his/her browser and the page contains special characters like Umlauts.

An example is http://127.0.0.1:8111/load_and_zoom?right=0&top=0&left=1&bottom=1 when you set the display language of JOSM to German. Then the page reads `Die Minima mÃ¼ssen geringer als die Maxima sein`.

This patch both adds the encoding to the HTTP-header and adds `<meta charset=""utf8"">` to the HTML of the error pages. Additionally it also adds HTML-escaping to the localized messages, so they could even contain `<`, `>` or `&` and still be displayed correctly.

The patch has been created against version 10583 and is attached to this ticket, or can be viewed at
https://github.com/floscher/josm/commit/776bb6d8b1a0e35492151835f7ac612ede1f8596 ([https://github.com/floscher/josm/commit/776bb6d8b1a0e35492151835f7ac612ede1f8596.patch Raw patch], [https://github.com/floscher/josm/commit/776bb6d8b1a0e35492151835f7ac612ede1f8596.diff Raw diff])"	defect	closed	normal	16.07	Core remotecontrol	latest	fixed	encoding html	
