mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Update functions2.lib.php
This commit is contained in:
@@ -178,9 +178,9 @@ function dol_print_file($langs, $filename, $searchalt = 0)
|
||||
$content = file_get_contents($formfilealt);
|
||||
$isutf8 = utf8_check($content);
|
||||
if (!$isutf8 && $conf->file->character_set_client == 'UTF-8') {
|
||||
print utf8_encode($content);
|
||||
print mb_convert_encoding($content, 'UTF-8', 'ISO-8859-1');
|
||||
} elseif ($isutf8 && $conf->file->character_set_client == 'ISO-8859-1') {
|
||||
print utf8_decode($content);
|
||||
print mb_convert_encoding($content, 'ISO-8859-1', 'UTF-8');
|
||||
} else {
|
||||
print $content;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user