Having problems with HESK and Unicode?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
streakfree
Posts: 2
Joined: Sat Aug 29, 2009 6:28 am

Having problems with HESK and Unicode?

Post by streakfree »

First of all, I want to say thank you for such a great script. This is definitely one amazing script.

I've been trying to localize the 2.1 script with Chinese by utilizing UTF-8 encoding. It works, until you push any button to submit anything or try to log into the admin area, it just yields a blank screen.

If I just set the script to English, there's no problem. But if I set it to Chinese, it won't work.

When I set to debug mode I receive this on the admin login screen:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /homepages/language/zh/text.php:1) in /inc/common.inc.php on line 676

Warning: Cannot modify header information - headers already sent by (output started at /language/zh/text.php:1) in /inc/common.inc.php on line 677

If anyone could help me, that'd be great! If not, thanks anyway!
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

I've seen this before, the problem is in your text.php file. When saving in UTF-8 mode many Windows programs (including Notepad) add a few bytes to the start of the text.php file and these break the PHP code.

The problem is these bytes can't be seen in most text editors. You can try like this:

1. download HexEdit from
http://www.physics.ohio-state.edu/~prewett/hexedit/

2. open the text.php file in HexEdit

3. you should see a lot of hex code (in pairs of number and letter), don't get scared. In the first line (which starts with 0) mark all pairs before the 3c one. You will probably need to mark 3 pairs (6 chars).

4. With the first three bytes selected click "Edit" and "Cut" in the menu

5. Click "File" and "Save As" then save the file as text.php

6. Upload to the server and it should work.
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
streakfree
Posts: 2
Joined: Sat Aug 29, 2009 6:28 am

Post by streakfree »

It worked like a charm!
Thank you so much! :D
Post Reply