What is solution this error?

hello
i use of notepad++. my language is persian, time that i save page order_lang.php to Dic: X:\xampp\htdocs\siran\system\application\language\persian with encoding utf-8 have a error.


A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at D:\\xampp\\htdocs\\siran\\system\\application\\language\\persian\\order_lang.php:1)

Filename: libraries/Session.php

Line Number: 662 

and time that i save page order_lang.php to Dic: X:\xampp\htdocs\siran\system\application\language\persian with encoding utf-8 without BOM not have error but tumble text persian => (سلام خوبی؟)
why?
whai is error?

It’s the BOM causing the error.
But I don’t understand why utf-8 would handle persian text differently with and without BOM? Let’s see if someone else has an idea.