Page 1 of 1
accent in name from email parser
Posted: Wed Sep 05, 2012 8:51 am
by wed
My version is 2.4.1
hello I have a problem with the email parser
when there is an accent or special character in the user name:
eg éçèà etc. ..
the user name is not displayed in the list of tickets
have you noticed the same behavior ?
thank you for your response
wed
Re: accent in name from email parser
Posted: Wed Sep 05, 2012 11:01 am
by Klemen
These chars work fine on my test server - you could have problems with incorrect encoding (for example if the email states it's ISO-8859 encoding, but it actually contains UTF-8 chars).
What version of PHP are you using and what email client to send out emails?
Re: accent in name from email parser
Posted: Wed Sep 05, 2012 12:15 pm
by wed
Hello Klemen
thank you for the quick response
my version : php version is 5.3 ()
and the was senf by Outlook 2010 version FR
and the emails are sent from an exchange (Office365)
the email was receive by another pop3 client
wed
Re: accent in name from email parser
Posted: Fri Sep 07, 2012 7:03 pm
by Klemen
I'm afraid Outlook is notorious for creating non-standard compliant emails.
Please send an example email to pop3test@hesk SPAM .com and I will check it out (remove " SPAM " from the address).
Re: accent in name from email parser
Posted: Tue Sep 11, 2012 5:39 am
by wed
hello sorry for my late reply
I send a test in the morning with a displayname accents
thank you in advance for their help
wed
Re: accent in name from email parser
Posted: Tue Sep 11, 2012 10:45 am
by wed
i was send email from Stéphane Frànçois Jérémy
the email is
atest@mydomain.com
from my Outlook web app from office 365
thx from your reply
wed
Re: accent in name from email parser
Posted: Tue Sep 11, 2012 6:48 pm
by Klemen
OK, can you try this?
1. open file inc/pipe_functions.inc.php in a text/html editor
2. find
Code: Select all
$tmpvar['name'] = hesk_input($results['from'][0]['name']) or $tmpvar['name'] = $hesklang['pde'];
3. just ABOVE this code add
Code: Select all
if ( ! empty($results['from'][0]['name']) )
{
$results['from'][0]['name'] = utf8_encode($results['from'][0]['name']);
}
4. save, upload and test.
Does this fix the issue?
Re: accent in name from email parser
Posted: Wed Sep 12, 2012 2:31 am
by wed
hello Klemen
perfect it's work
the Exchange code is a patch or an add - on?
This fix will make you she part of a future update of Hesk?
Thanks again for this valuable assistance
wed
Re: accent in name from email parser
Posted: Wed Sep 12, 2012 2:27 pm
by Klemen
Yes, next version will have a way of checking and converting special chars in names.