[Vtigercrm-commits] [vtiger development] #7425: Display of accents and various UTF-8 chars buggy in folders for MailManager
vtiger development
vtiger-tickets at trac.vtiger.com
Thu May 24 02:52:40 PDT 2012
#7425: Display of accents and various UTF-8 chars buggy in folders for MailManager
----------------------------+-----------------------------------------------
Reporter: nicolasgasnier | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.4.0
Severity: Medium | Keywords:
----------------------------+-----------------------------------------------
In MailManager and Webmails, the display of folder names and mail headers
is buggy with accents and UTF-8 characters.
They are displayed as UTF7, sometimes escaped, sometimes raw (makes a
buggy character). Folder list even displays empty names.
I have this issue with an Exchange Imap connection, with french language,
but I believe it may not be specific to that.
This problem is annoying for users so I tried to make some corrections. I
had to modify quite a number of files to correct these character encoding
and it seems to work quite well.
Here's the list of files I needed to modify, they are included in the
attachment :
Smarty/templates/modules/MailManager/Folder.List.tpl
Smarty/templates/modules/MailManager/Folder.Open.tpl
Smarty/templates/modules/MailManager/Mail.Open.tpl
modules/MailManager/src/connectors/Connector.php
modules/MailManager/src/models/Folder.php
modules/MailManager/MailManager.js
modules/Webmails/ListView.php
modules/Webmails/ListViewAjax.php
modules/Webmails/Webmails.php
The problem was mostly solved by creating a function decode_accents in
Webmails.php and calling it on templates and variouse places where display
is needed. For folders, I needed to add a method label() to separate
between the name in IMAP format and the display label. Other corrections
involve utf8 / iso-8859-1 conversions.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7425>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list