I am reading 'PHP,MySQL Novice to Ninja book by Kevin Yank' and in there he uses a separate file for connecting to the database which I just include into the code when needed which I suppose is a common practice.
My problem is that when I use UTF-8 encoding for that separate file used to connect to the database, I get errors like that Cannot modify header information - headers already sent by. However, if I change encoding back to ANSI, the problems disappear. How is that possible and what difference does encoding format make anyway?
Thank you for the answers