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 19, 2005 06:06PM
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 02:48AM
thats not a question of encoding. you have had empty chars or lines before the <?php in the beginning.


Thomas Seifert
Re: english.php which encoding to use?
March 20, 2005 05: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 05: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 08:22AM
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 08:22AM by sheik.
Sorry, only registered users may post in this forum.

Click here to login