Page 1 of 1

UTF-8 throws up errors

Posted: Sun Jan 08, 2006 1:22 pm
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.

Posted: Sun Jan 08, 2006 8:49 pm
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

Posted: Mon Jan 09, 2006 1:26 am
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.

translating .html files

Posted: Mon Jan 09, 2006 6:03 am
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.