PHP string polish signs encoding
<p>I'm trying to implement Caesar cipher using PHP, but my scrips's got problem with polish signs. I'm using UTF-8 charset but signs like "ĄŚĆŃ" are displayed like '�' anyway.</p>

<p>Here is my code:</p>

<pre><code>$text='MYCODE'; //code to crypt
$alphabet="AĄBCĆDEĘFGHIJKLŁMNŃOÓPRSŚTUWYZŹŻ";

$n=strlen($text);
$new_text='';
for ($i=0; $i&lt;$n; $i++) 
    $new_text.=$alphabet[(strpos($alphabet,$text[$i])+5)%32];

echo $new_text;
echo "&lt;/br&gt;";
</code></pre>

<p>and that's the result of it: '�E�SGH'</p>

<p>When I work with english alphabet it works correctly.</p>