[ postfixadmin-Bugs-3502195 ] UTF-8 string display problem
Brought to you by:
christian_boltz,
gingerdog
From: SourceForge.net <no...@so...> - 2012-03-11 23:24:59
|
Bugs item #3502195, was opened at 2012-03-11 16:24 Message generated for change (Tracker Item Submitted) made by laddobar You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3502195&group_id=191583 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Interface (example) Group: v2.3.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Laddobar (laddobar) Assigned to: Nobody/Anonymous (nobody) Summary: UTF-8 string display problem Initial Comment: In two places (as I discovered so far) PA has trouble displaying UTF-8 characters - in both cases these are "description" fields. From the superadmin point of view: - description of the domain when listing all the domains in /postfixadmin/list-domain.php - name of the mailbox owner when listing aliases and mailboxes of a domain in /postfixadmin/list-virtual.php?domain=example.com I found the problem in the usage of HTMLEntities function, which is missing the encoding parameter. Change in templates admin_list-domain.php and list_virtual.php seems sufficient: original: print "<td>" . htmlentities($domain_properties[$i]['description']) . "</td>"; resolved: print "<td>" . htmlentities($domain_properties[$i]['description'],ENT_QUOTES,'UTF-8') . "</td>"; Thanks for your good work! Laddobar ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3502195&group_id=191583 |