my question is how can I show exact strings when I'm reading text file to one column on page...
In html header is:
[text]<meta http-equiv="Content-Type" content="text/html; charset=utf-8">[/text]
Php code for shoving text is:
Code: Select all
<?
$data = File ("ansii_text.txt");
for ($i = 0; $i < Count ($data); $i++)
echo "$data[$i]<br>";
?>I tried stream_encoding to change encoding but it didn't help..
How can I get visible exactly what is written in TXT file? ...have a same page encoding or recode saved format of text file?
Anyone can help me?