I am using this piece of code to find if substring is present in a string but when it runs into a special character it fails even when the character is clearly present.
//Code out of context
if (strpos($pieces[$i], 'Č<br>t') !== false) {
$out .= $pieces[$i];}
---fails, Č not found
if (strpos($pieces[$i], 'S<br>t') !== false) {
$out .= $pieces[$i];}
---OK
Input
<td >Č<br>t</td>
<td >S<br>t</td>
Via
$str = file_get_contents($url);
What am I doing wrong?
EDIT: Still not working. Input page is in windows-1250, is the problem in it?