2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

contrib/InfoPanel: added utf-8 header

git-svn-id: https://svn.fhem.de/fhem/trunk@7861 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
betateilchen 2015-02-03 20:43:19 +00:00
parent ee0d9b4ae4
commit f8f7659d7e

View File

@ -1063,7 +1063,7 @@ sub btIP_HTMLHead($$) {
# my $doctype= '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">';
# my $xmlns= 'xmlns="http://www.w3.org/1999/xhtml"';
my $doctype= '<?xml version="1.0" standalone="no"?> '."\n".
my $doctype= '<?xml version="1.0" encoding="utf-8" standalone="no"?> '."\n".
'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" '.
'"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">'."\n";
my $xmlns= "";
@ -1072,6 +1072,7 @@ sub btIP_HTMLHead($$) {
# css and js header output should be coded only in one place
my $css= "";
my $scripts= btIP_getScript();
# my $meta = "<meta charset=\"UTF-8\">\n";
my $code= "$doctype\n<html $xmlns>\n<head>\n<title>$title</title>\n$r$css$scripts</head>\n";
return $code;
}