No non-English characters accepted

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

No non-English characters accepted

Post by inka »

Script URL: http://www.bcucluj.ro/hu/help
Version of script: 2.4.1
Hosting company:
URL of phpinfo.php: http://bcucluj.ro/phpver.php
URL of session_test.php:
What terms did you try when SEARCHING for a solution: charcters, utf-8

Write your message below:

First of all thank you very much for this excellent software!

I was testing the 2.3 version which worked well, but now I tried to upgrade to the newest version.

Unfortunately I have a very big problem.
Non-English characters can`t be introduced in the fields!
Yes, I read that some other guys had the same problem but I checked and rechecked 100 times the collations and everything seems fine:
$hesklang['ENCODING']='UTF-8';
$hesklang['_COLLATE']='utf8_unicode_ci';
MySQL charset: UTF-8 Unicode (utf8)
MySQL connection collation: utf8_unicode_ci' (MySQL client version: 5.1.56)
Every column has this collation.
I even made a new install in other directories and I have the same problem!

Any help or idea would be greatly appreciated! Thank you!

ps. following the advice from here: viewtopic.php?f=13&t=4180 I had the same result: nothing is saved after the first non-English character... What php version did he have?
The test2 you gave can be found here: http://bcucluj.ro/hu/test2.php
hostwebservice.com
Posts: 45
Joined: Mon Dec 18, 2006 3:20 pm

Re: No non-English characters accepted

Post by hostwebservice.com »

If you send me your language file zipped I can have a look....

Marino
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

Re: No non-English characters accepted

Post by inka »

Thank you.

I use the default English file, I made a new install, but same problem.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No non-English characters accepted

Post by Klemen »

Hi,

I would indeed recommend updating PHP to latest before trying anything else.

However, based on your test2.php file the modification in the topic you mention should work, can you try it again?

Open "inc/common.inc.php" and delete this exact code:

Code: Select all

, ENT_COMPAT | ENT_SUBSTITUTE | ENT_XHTML, 'UTF-8'
** This code needs to be delete two times in the file! **

Any luck this time?
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
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

Re: No non-English characters accepted

Post by inka »

Thank you for your answer!

I waited for the PHP upgrade but even if we upgraded to the latest version (5.4.7), the problem is not gone...just changed a little bit.

Now the non-English characters are accepted, but they are changed to the following: ďż˝

Tried to delete the two mentioned lines again, but then it doesn`t accepts them anymore.

The test page its still up: http://bcucluj.ro/hu/test2.php
I would need to use some of the following characters: ő ú ű é á ș ț ă î â

I would greatly appreciate it if you could take a look at it.

Thank you very much!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No non-English characters accepted

Post by Klemen »

These seem to be UTF-8 byte order marks.

Did you make any changes to any of the HESK files? In some editors just opening and saving a file may cause such problems.

I would recommend downloading a fresh copy of HESK file and uploading *all* files to the server again except these ones:
- header.txt
- footer.txt
- hesk_settings.inc.php (unless you manually opened and saved it in an editor)
- install/folder
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
inka
Posts: 10
Joined: Thu Sep 13, 2012 10:37 am

Re: No non-English characters accepted

Post by inka »

Code: Select all

No, I did not make any changes.

Tried everything that you suggested, w/o results :( 
I installed HESK on another server and there worked fine... It seems that its something wrong with our server.
We will try to figure out what...
If nothing changes we probably will use 2.3. Is there an archive for old versions?
I just wanted to use the new features, especially the POP3 fetching but I will leave it for now.
Thank you!
PS. FINALLY I found the problem...!
The server is somehow set to iso-8859-1, and metatags were not able to change this.
The solution: added the line "header('Content-Type: text/html; charset=utf-8'); " to inc/header.inc to force the change to UTF-8.
Hopefully this information will help others too.
We are working on some translations and when they are ready, we will submit them as a big thank you for your time!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: No non-English characters accepted

Post by Klemen »

Glad to hear you got it working and thanks for sharing your solution!
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