wierd characters when displaying content of a file
Posted: Tue Apr 11, 2006 7:08 am
I have a txt file and when I display the content using echo some lines display correctly and some have wierd characters in between letters:
for example:
as a result I am getting correctly displayed first line:
1st line: Product A
2nd line: between each letter there is a square P(square)r(square)o(square)d(square) etc.
What should I do to display it correctly and why is it doing that?
for example:
Code: Select all
<?php
echo $lines[1];
echo $lines[2];as a result I am getting correctly displayed first line:
1st line: Product A
2nd line: between each letter there is a square P(square)r(square)o(square)d(square) etc.
What should I do to display it correctly and why is it doing that?