$_GET encoding problem with cyrillic text

Posted by T1000 on Stack Overflow See other posts from Stack Overflow or by T1000
Published on 2010-03-07T21:23:36Z Indexed on 2010/03/19 18:41 UTC
Read the original article Hit count: 389

Filed under:
|
|
|
|

I'm trying this code (on my local web server)

<?php
echo 'the word is / ?????? ? '.$_GET['word'];
?>

but I get corrupted result when enter ?word=?????

the word is / ?????? ? ????

The document is saved as 'UTF-8 without BOM' and headers are also UTF-8. I have tried urlencode() and urldecode() but the effect was same. When upload it on web server, works fine...

© Stack Overflow or respective owner

Related posts about php

Related posts about cyrillic