mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
Suppress "Notice" messages when iconv detects invalid UTF-8 characters, since it breaks the JSON output if display_errors in On...
SVN:trunk[3878]
This commit is contained in:
@@ -210,7 +210,7 @@ class CSVBulkExport extends TabularBulkExport
|
|||||||
{
|
{
|
||||||
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
||||||
// and thus to convert field by field and not the whole row or file at once (see ticket #991)
|
// and thus to convert field by field and not the whole row or file at once (see ticket #991)
|
||||||
$aData[$idx] = iconv('UTF-8', $this->aStatusInfo['charset'].'//IGNORE//TRANSLIT', $aData[$idx]);
|
$aData[$idx] = @iconv('UTF-8', $this->aStatusInfo['charset'].'//IGNORE//TRANSLIT', $aData[$idx]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$sData = implode($this->aStatusInfo['separator'], $aData)."\n";
|
$sData = implode($this->aStatusInfo['separator'], $aData)."\n";
|
||||||
@@ -258,7 +258,7 @@ class CSVBulkExport extends TabularBulkExport
|
|||||||
{
|
{
|
||||||
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
// Note: due to bugs in the glibc library it's safer to call iconv on the smallest possible string
|
||||||
// and thus to convert field by field and not the whole row or file at once (see ticket #991)
|
// and thus to convert field by field and not the whole row or file at once (see ticket #991)
|
||||||
$aData[] = iconv('UTF-8', $this->aStatusInfo['charset'].'//IGNORE//TRANSLIT', $sField);
|
$aData[] = @iconv('UTF-8', $this->aStatusInfo['charset'].'//IGNORE//TRANSLIT', $sField);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user