UTF8 encoding is done by personalized wrapper

This commit is contained in:
Laurent Destailleur
2010-08-09 23:57:45 +00:00
parent 3126ffcf01
commit f73b98546d
2 changed files with 35 additions and 11 deletions

View File

@@ -107,7 +107,7 @@ function show_ldap_test_button($butlabel,$testlabel,$key,$dn,$objectclass)
/**
* Show an LDAP array in an HTML to records.
* Show a LDAP array into an HTML output array.
*
* @param $result Array to show. This array is already encoded into charset_output
* @param $level
@@ -151,7 +151,7 @@ function show_ldap_content($result,$level,$count,$var,$hide=0,$subcount=0)
else if ($subcount)
{
$subcount--;
$newstring=@htmlentities($val,ENT_COMPAT,'UTF-8'); // Make entity encoding
$newstring=dol_htmlentitiesbr($val);
if ($hide) print preg_replace('/./i','*',$newstring);
else print $newstring;
print '<br>';