Hello Stanislav,
When i used utf8_encode() echo utf8_encode("&names$i=".$names);Following code works fine for me:
<?
$name = chr(0xDC);
echo utf8_encode("name='$name'");
?>
If you like force browser to switch to UTF-8, you can use header():
<?
echo header("Content-type: text/html; charset=utf-8");
$name = chr(0xDC);
echo utf8_encode("name='$name'");
?>
BTW, utf8_encode()/utf8_decode() works _only_ for ISO-8859-1, not for win1251.
Gamid Isayev
--
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php