accent in name from email parser

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
wed
Posts: 29
Joined: Sat Nov 12, 2011 7:15 am

accent in name from email parser

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: accent in name from email parser

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wed
Posts: 29
Joined: Sat Nov 12, 2011 7:15 am

Re: accent in name from email parser

Post 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
Last edited by wed on Tue Sep 11, 2012 10:38 am, edited 1 time in total.
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: accent in name from email parser

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wed
Posts: 29
Joined: Sat Nov 12, 2011 7:15 am

Re: accent in name from email parser

Post 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
wed
Posts: 29
Joined: Sat Nov 12, 2011 7:15 am

Re: accent in name from email parser

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: accent in name from email parser

Post 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?
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
wed
Posts: 29
Joined: Sat Nov 12, 2011 7:15 am

Re: accent in name from email parser

Post 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
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: accent in name from email parser

Post by Klemen »

Yes, next version will have a way of checking and converting special chars in names.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply