CodeIgniter Forums
problem with lang file - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: problem with lang file (/showthread.php?tid=13775)



problem with lang file - El Forum - 12-05-2008

[eluser]Unknown[/eluser]
hello everybody,

i've a problem with language file.
i've a form and when i submit it, it goes to a script to store the form data into a session.
The problem :
If my language file is encoded in 8 bits -> no problem, if it's encoded in utf-8 -> php fire an error :
Code:
"Message: Cannot modify header information - headers already sent by (output started at /homez.31/extratha/carte/system/application/language/en/etape_lang.php:1)
Filename: libraries/Session.php
Line Number: 662"

With my local server (wamp) i have no problem, the distant server is ovh and fires the error.

What happen ?
Thank you


problem with lang file - El Forum - 12-05-2008

[eluser]GSV Sleeper Service[/eluser]
this is probably due to whitespace at the end of your language file. the easiest way to avoid this is to remove the closing php tag.