Page 1 of 1

charset problem on mainpage

Posted: Fri Jun 25, 2010 11:45 am
by hollandsedrop
Script URL:
Version of script: 2.2
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 Klemen,
How do I fix charset problem search Knowledgebase on homepage?

Please see: http://img145.imageshack.us/img145/4619/chprb.jpg

Posted: Fri Jun 25, 2010 11:52 am
by Klemen
It's an encoding issue. In suggest_articles.php try changing

Code: Select all

$hesklang['sc'];
to

Code: Select all

escape($hesklang['sc']);
and see if that helps.

Posted: Fri Jun 25, 2010 12:00 pm
by hollandsedrop
Klemen wrote:It's an encoding issue. In suggest_articles.php try changing

Code: Select all

$hesklang['sc'];
to

Code: Select all

escape($hesklang['sc']);
and see if that helps.
I tried this, but the problem continues in the results. May be something else?

Posted: Fri Jun 25, 2010 4:05 pm
by Klemen
How about if you:

1. delete all instances of

Code: Select all

escape
from the suggest_articles
2. change

Code: Select all

require(HESK_PATH . 'inc/js2php_encoding.inc.php');
to

Code: Select all

require(HESK_PATH . 'inc/js2php_encoding.inc.php');
header('Content-Type: text/xml; charset='.$hesklang['ENCODING']);