CodeIgniter Forums
Language file in utf-8 and header problem - 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: Language file in utf-8 and header problem (/showthread.php?tid=30046)



Language file in utf-8 and header problem - El Forum - 04-30-2010

[eluser]Unknown[/eluser]
Hi!

I have this problem when I created language file and make it utf-8 encoding (as I have on my web) it gives me $this:

Quote:A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at C:\Program Files\XAMPP\xampp\htdocs\noted\application\language\polish\core_lang.php:1)

Filename: libraries/Session.php

Line Number: 662

When I change encoding to ANSI it goes clear and well (but i haven't special language signs)... how can I make my file utf-8 without error?

thank you in advise for an answare.

regards,
newicz


Language file in utf-8 and header problem - El Forum - 04-30-2010

[eluser]WanWizard[/eluser]
What editor do you use to edit the php files? Make sure the files aren't saved with a UTF-8 BOM header...


Language file in utf-8 and header problem - El Forum - 05-01-2010

[eluser]Unknown[/eluser]
I maked it with notepad... I will try other converters


Language file in utf-8 and header problem - El Forum - 05-01-2010

[eluser]WanWizard[/eluser]
have a look at http://sixrevisions.com/tools/12-excellent-free-text-editors-for-coders/

I used to use UltraEdit on Windows (before baning Windows in this house... Wink)