UTF-8 throws up errors

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
robroy
Posts: 6
Joined: Sun Jan 08, 2006 1:08 pm

UTF-8 throws up errors

Post by robroy »

Script URL: http://www.i-zy.net/mboard121/
Version of script: current
Version of PHP: 4.3.10
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:
Replaced "New topic" etc with Japanese and saved the .php file in UTF-8
but get error message;
Warning: Cannot modify header information - headers already sent by (output started at /home/member/public_html/mboard121/mboard.php:1) in /home/member/public_html/mboard121/mboard.php on line 618

Warning: Cannot modify header information - headers already sent by (output started at /home/member/public_html/mboard121/mboard.php:1) in /home/member/public_html/mboard121/mboard.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /home/member/public_html/mboard121/mboard.php:1) in /home/member/public_html/mboard121/mboard.php on line 620

Warning: Cannot modify header information - headers already sent by (output started at /home/member/public_html/mboard121/mboard.php:1) in /home/member/public_html/mboard121/mboard.php on line 621
i-zy.net - members message board

Works fine when I use Western ISO format but with wrong charset!
http://www.i-zy.net/mboard121/

I also tried to change the Chartset at line 627 but this give 404 error.

Advice appreciated.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You made some errors when translating. Try translating the original file again and make sure you don't make any other changes than just the text. Even an extra empty line or space in the wrong place can throw this error.

Also make sure your mboard.php file starts with <?php there should be NOTHING before <?php , not even empty line or space!

Regards
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
robroy
Posts: 6
Joined: Sun Jan 08, 2006 1:08 pm

Post by robroy »

I appreciate your quick reply..better than for some paid stuff I experience.

I'm pulling my hair over this one...I'll try a couple of permutations to see
how it comes out. I've translated .php files for several projects and know my
way around, well so I thought!

Well, what I've found so far is:
Works fine in Shift_JIS but the same file converted to UTF-8 throws up error
as above. Curious to know what I can do to use it in UTF-8 later. Shift_JIS is fine meantime.
robroy
Posts: 6
Joined: Sun Jan 08, 2006 1:08 pm

translating .html files

Post by robroy »

Script is working in Shift_JIS and the only thing I can't figure out
is how I can get the .html files in msg directory to reflect all my language changes.

Message and Reply reflect input language but the
<form method=post action="mboard.php" name="form"> in .html
Name: Email: Subject: Message:
are in English even thought I translated them to Japanese in the mboards.php file.

Advice or links to Posts I have missed on this appreciated.
Locked