Better handling of unexpected/invalid characters in an UTF-8 file.

SVN:trunk[880]
This commit is contained in:
Denis Flaven
2010-09-16 09:21:20 +00:00
parent 6f223fbba2
commit 7494ed5ea0

View File

@@ -835,7 +835,7 @@ EOF
// Compute a subset of the data set, now that we know the charset
if ($sEncoding == 'UTF-8')
{
$sUTF8Data = $sCSVData;
$sUTF8Data = iconv('UTF-8', 'UTF-8//IGNORE//TRANSLIT', $sCSVData);
}
else
{