Page 1 of 1

uk £ pound

Posted: Mon Aug 27, 2012 2:21 pm
by brian99
Script URL:
Version of script: 2.4.1
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
Hi I am in the UK, have done a new install of hesk the only problem I have is when entering a UK POUND eather as a message or canned response.

Re: uk £ pound

Posted: Mon Aug 27, 2012 2:32 pm
by Klemen
What kind of problem exactly are you having?

Seems to work fine in the demo:
http://www.hesk.com/demo/ticket.php?track=J45-Z7H-5843

Re: uk £ pound

Posted: Mon Aug 27, 2012 2:48 pm
by brian99
Hi this is the site http://freelanceav.tv/support if I enter the uk £ sign the rest of the text gets Ignored.

Regards

Brian

Re: uk £ pound

Posted: Mon Aug 27, 2012 5:59 pm
by Klemen
That's a strange one, even entering the EURO sign € doesn't work on your server.

Could you upload this text.php file to your server, open it in browser, submit query and see if it shows the text?
http://www.phpjunkyard.com/extras/test.zip

Re: uk £ pound

Posted: Tue Aug 28, 2012 9:22 am
by brian99
Hi Klemem

I've uploaded the test.php seems to work ok as it displayes the characters "please have a look". I have another site on the same server using hesk 2.3 licensed and that works fine.

Re: uk £ pound

Posted: Tue Aug 28, 2012 2:31 pm
by Klemen
Hi,

This is very strange indeed, for example your sever double-encodes the Ł sign.

This is probably a PHP configuration/server-side problem, could you upload PHP info file to your server and post the link here so I can have a look at your settings?

Re: uk £ pound

Posted: Tue Aug 28, 2012 3:21 pm
by brian99
Hi

I've uploaded the file. Please let me know when you have looked at the file I will them remove the file.

Re: uk £ pound

Posted: Tue Aug 28, 2012 4:10 pm
by Klemen
You may delete the phpinfo file, didn't find anything special inside.

Could you upload this test file and let me know, perhaps it will help pinpoint where the problem starts:
http://www.phpjunkyard.com/extras/test2.zip

Re: uk £ pound

Posted: Tue Aug 28, 2012 4:34 pm
by brian99
Hi Klemen

I've uploaded the test2 file.

Re: uk £ pound

Posted: Tue Aug 28, 2012 4:50 pm
by Klemen
It would probably work on your server if you find and delete this exact code *twice* inside your "inc/common.inc.php" file:

Code: Select all

, ENT_COMPAT | ENT_SUBSTITUTE | ENT_XHTML, 'UTF-8'
However, the *recommended* thing to do would be to contact your hosting company and ask them to update their PHP to at least 5.3.16. Right now they are running a version from January 2006 (!!) that is full of bugs and known security issues.

Re: uk £ pound

Posted: Tue Aug 28, 2012 6:45 pm
by brian99
Hi

I've done the mod but now any text after the £ isn't saved.

Re: uk £ pound

Posted: Tue Aug 28, 2012 7:05 pm
by Klemen
I'm afraid I'm out of ideas then, this seems to be some strange encoding-related issue.

The only thing I can recommend trying is to upgrade PHP to a more recent version. Your host should do that free of charge as having such an old version is all but secure.

Re: uk £ pound

Posted: Tue Aug 28, 2012 7:07 pm
by Klemen
Oh, this is a far shot, but you can try enabling Debug mode (Settings > Help desk tab > Features > Debug mode ON) before submitting a test ticket and see if that generates any error messages.

Other than that...

Re: uk £ pound

Posted: Wed Aug 29, 2012 8:33 am
by hostwebservice.com
Brian follow Klemen advice and upgrade PHP version

As hosting provider I must say that your provider is FOOL !! Keeping old php version is a big issue that with a good hacker can come in and destroy what he wants.

Change it or upgrade urgently for your safety !

Marino

Re: uk £ pound

Posted: Mon Feb 11, 2013 3:49 pm
by garyw74
This is because your server is set to a different character set than what is specified and used by the script.

1)
Install the Helpdesk in a folder.

2)
Edit inc/common.inc.php and remove any reference to the character set
For example:-

Code: Select all

return html_entity_decode($in, ENT_COMPAT, 'ISO-8859-1');
becomes

Code: Select all

return html_entity_decode($in);
3)
Add a .htaccess file to the folder and add the following code (for the UK)

Code: Select all

<filesMatch ".(htm|html|css|js|php)$">
AddDefaultCharset UTF-8
DefaultLanguage en-US
</filesMatch>