From 585f386ba39a9bca0b3ded13c52cc44eecd1b0c4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Mar 2012 19:09:29 +0100 Subject: [PATCH] Try a better fix --- htdocs/imports/import.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htdocs/imports/import.php b/htdocs/imports/import.php index 246d333c1f1..e517c50adaa 100644 --- a/htdocs/imports/import.php +++ b/htdocs/imports/import.php @@ -1638,7 +1638,12 @@ function show_elem($fieldssource,$pos,$key,$var,$nostyle='') print ''; print ''; print $langs->trans("Field").' '.$pos; - if (! empty($fieldssource[$pos]['example1'])) print ' ('.$fieldssource[$pos]['example1'].')'; + $example=$fieldssource[$pos]['example1']; + if ($example) + { + if (! utf8_check($example)) $example=utf8_encode($example); + print ' ('.$example.')'; + } print ''; print ''; }