I have a trouble with include function, here is a problem:
i have index.php with a string:
<td style="width: 62604px; height: 41px" class="style36"> <? include('title.php');?></td>
here is title.php:
<?php
echo 'some crazy stuff!';
?>
it doesn’t matter what inside of this file!Because, when I’m running the index.php script: it always shows me ‘п»’ symbol it`s representation of ‘?’ in windows-1251 charset.
So the result page is:
<td style="width: 62604px; height: 41px" class="style36"> п» some crazy stuff</td>
It’s a Byte Order Mark. Your included file is encoded in UTF8 with BOM at the beginning. These are three bytes that say if multibyte character are stored from highest byte to lowest or the other way round.
Anyway, you need to get rid of it. You can use Notepad++ for example. Open the file in it, go to
Encodingmenu, selectConvert to UTF-8 without BOM