mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
Use correct character set for translations and when editing files https://virtualmin.com/node/22973
This commit is contained in:
@ -467,17 +467,18 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
# print_content_type()
|
||||
# print_content_type([type])
|
||||
# Prints the content-type header, with a charset
|
||||
sub print_content_type
|
||||
{
|
||||
local $type = $_[0] || "text/plain";
|
||||
if ($userconfig{'nocharset'} || $config{'nocharset'}) {
|
||||
# Never try to use charset
|
||||
print "Content-type: text/plain\n\n";
|
||||
print "Content-type: $type\n\n";
|
||||
}
|
||||
else {
|
||||
$charset = &get_charset();
|
||||
print "Content-type: text/plain; charset=$charset\n\n";
|
||||
print "Content-type: $type; charset=$charset\n\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user