Firefox PHP

english.php which encoding to use?

Posted by tom123 
All files from this thread

File Name File Size   Posted by Date  
english.php 31.6 KB open | download tom123 03/20/2005 Read message
english.php which encoding to use?
March 20, 2005 12:06AM
Hallo,
when I translate lang/englsih.php in to Lithuanian language I get an error:
if I save file with notepad encodet with utf-8, i get an error message when trying to login:

Warning: Cannot modify header information - headers already sent by (output started at E:\WEBSITES\medicus.lt\phorum\include\lang\english.php:1) in E:\WEBSITES\medicus.lt\phorum\login.php on line 132

and I can't login.

On the other hand, when I save language file with notepad encoded as ANSI - I can't see Lithuanian letters in all words, that are in language file

Maybe somebody knows the reasen
Thanks
Re: english.php which encoding to use?
March 20, 2005 08:48AM
thats not a question of encoding. you have had empty chars or lines before the <?php in the beginning.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: english.php which encoding to use?
March 20, 2005 11:06PM
I have checked language file, but there is no empty chars or lines.
When I save the same file encoded as ansi - it works and I can log in. But I can't see Lithuanian letters in all translated words of template.
Attachments:
open | download - english.php (31.6 KB)
Re: english.php which encoding to use?
March 20, 2005 11:08PM
I have attached the file, wich is saved as utf-8 and with which I can't lof in
Thanks everybody for opinions
Re: english.php which encoding to use?
November 29, 2005 02:22PM
This is an old thread, but the problem may have been that PHP had problems include()'ing utf-8 encoded files. I have had this problem in the past - I don't know if newer versions of PHP can do it (I assume they can).

/\dam

--
My notable Phorum sites:
Movie Deaths Database - "review comments" system mostly powered by Phorum
Learn Chinese! - integrated forum quiz




Edited 1 time(s). Last edit at 11/29/2005 02:22PM by sheik.
Sorry, only registered users may post in this forum.

Click here to login