charset problem on mainpage

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

charset problem on mainpage

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

Post 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.
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
hollandsedrop
Posts: 90
Joined: Tue Dec 30, 2008 11:29 am

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

Post 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']);
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