Fix: Use filesystem encoding

This commit is contained in:
Laurent Destailleur 2011-12-01 23:37:41 +01:00
parent 9279964d75
commit fe483567b3

View File

@ -471,7 +471,7 @@ class CMailFile
*/ */
function _encode_file($sourcefile) function _encode_file($sourcefile)
{ {
$newsourcefile=utf8_check($sourcefile)?utf8_decode($sourcefile):$sourcefile; // is_readable and file_get_contents need ISO filename $newsourcefile=dol_osencode($sourcefile);
if (is_readable($newsourcefile)) if (is_readable($newsourcefile))
{ {