CodeIgniter Forums
[Solved]Session problem "headers already sent" when using UTF-8 encoding - 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: [Solved]Session problem "headers already sent" when using UTF-8 encoding (/showthread.php?tid=4122)



[Solved]Session problem "headers already sent" when using UTF-8 encoding - El Forum - 11-07-2007

[eluser]Rick Jolly[/eluser]
Has anyone experienced a problem when using sessions and UTF-8 encoding? With Notepad++ ANSI works fine, but not UTF-8. I've used native sessions and CI sessions with the same results.

EDIT: Found the solution - save in UTF-8 without BOM (byte order marks). BOMs get added before the <?php tag.

Note to self: search first! The solutions to all of life's problems exist on the CI forums.