Page 1 of 1

No non-English characters accepted

Posted: Thu Sep 13, 2012 11:10 am
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

Re: No non-English characters accepted

Posted: Thu Sep 13, 2012 12:03 pm
by hostwebservice.com
If you send me your language file zipped I can have a look....

Marino

Re: No non-English characters accepted

Posted: Fri Sep 14, 2012 6:09 am
by inka
Thank you.

I use the default English file, I made a new install, but same problem.

Re: No non-English characters accepted

Posted: Fri Sep 14, 2012 2:50 pm
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?

Re: No non-English characters accepted

Posted: Tue Sep 18, 2012 2:55 pm
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!

Re: No non-English characters accepted

Posted: Tue Sep 18, 2012 5:49 pm
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

Re: No non-English characters accepted

Posted: Wed Sep 19, 2012 7:31 am
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!

Re: No non-English characters accepted

Posted: Wed Sep 19, 2012 5:22 pm
by Klemen
Glad to hear you got it working and thanks for sharing your solution!