uk £ pound

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

uk £ pound

Post 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.
Regards

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

Post 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
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
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

Re: uk £ pound

Post 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
Regards

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

Post 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
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
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

Re: uk £ pound

Post 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.
Regards

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

Post 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?
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
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

Re: uk £ pound

Post 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.
Regards

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

Post 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
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
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

Re: uk £ pound

Post by brian99 »

Hi Klemen

I've uploaded the test2 file.
Regards

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

Post 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.
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
brian99
Posts: 6
Joined: Mon Aug 27, 2012 2:13 pm

Re: uk £ pound

Post by brian99 »

Hi

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

Brian
Klemen
Site Admin
Posts: 10147
Joined: Fri Feb 11, 2005 4:04 pm

Re: uk £ pound

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

Re: uk £ pound

Post 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...
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
hostwebservice.com
Posts: 45
Joined: Mon Dec 18, 2006 3:20 pm

Re: uk £ pound

Post 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
garyw74
Posts: 1
Joined: Mon Feb 11, 2013 3:40 pm

Re: uk £ pound

Post 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>
Post Reply