Page 1 of 1

ampersand creates problems

Posted: Wed Mar 13, 2013 12:55 pm
by oknihs88
Script URL: INTERNAL
Version of script: 2.4.2
Hosting company: NA
URL of phpinfo.php: NA
URL of session_test.php: NA
What terms did you try when SEARCHING for a solution:

Write your message below:

Email fetching is working no problem. But when email contents include & in the body, HESK misinterprets the message. Any suggestion?

For example, original email is saying "old & new Employee ...." and imported message in HESK is showing "old font-family:"Arial","sans-serif""> " and the rest is trimmed off. It looks like the ampersand is creating the problem.

Re: ampersand creates problems

Posted: Wed Mar 13, 2013 9:09 pm
by Klemen
Could you share a sample email (entire source with headers - you can hide email addresses) so I can check and troubleshoot it?

Re: ampersand creates problems

Posted: Thu Mar 14, 2013 1:46 pm
by oknihs88
I sent to HESK to recreate the problem. Here is the message I sent.
--------------------------------------------------------------------------------
Hello support,

Can you read me? I need a help from you & you & you.

If “you” can help me, that will be ‘wonderful’.

This is a test.
--------------------------------------------------------------------------------

And this is the message I received after email fetch imported to HESK
--------------------------------------------------------------------------------
Hello support,

Can you read me? I need a help from you & you font-family:"Calibri","sans-serif";mso-bidi-font-family:"Times New Roman";mso-no-proof:yes">

If "you" can help me, that will be 'wonderful'.

This is a test.
--------------------------------------------------------------------------------

My company is getting to like HESK a lot. I appreciate your nice effort.

Re: ampersand creates problems

Posted: Thu Mar 14, 2013 8:49 pm
by Klemen
Hmm, I can't seem to be able to duplicate the issue, it could be due to the way emails are coded.

Could you send a test email to pop3test (AT) hesk (DOT) com so I can run in through my test setup?

Re: ampersand creates problems

Posted: Fri Mar 15, 2013 1:42 pm
by oknihs88
I was about sending you some test email. But I thought it could simply be a PHP set up issue. So I looked through PHP.INI and I noticed mbstring extension was on but all settings under [mbstring] were commented out. So I uncommented all. Bingo! It started working fine.

Thanks for your time to investigate this issue. You gave me the direction to check.

Re: ampersand creates problems

Posted: Tue Apr 09, 2013 12:45 pm
by matt.wilson
Hi

This sounded promising but when I check my php.ini all references to mbstring are already commented out.

Anymore ideas?

Thanks

Re: ampersand creates problems

Posted: Tue Apr 09, 2013 6:25 pm
by Klemen
Are you on a Windows or Linux server?

If on Windows, is the line

Code: Select all

extension=php_mbstring.dll
also uncommented (in other words: does the line with this text start with ; ?