0

I've got the following URL :

http://my-server/method.php?search_string=%D0%9F%D0%B0%D1%80%D0%B8%D0%BA ( url-encoded word - "Парик" ).

And i've for the following script :

<?php
    include 'BL_DBHelper.php';

    header( "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />") ;

    $searchString = $_GET['search_string'];

    echo $searchString ; 
?>

Supprisingly, server output is : " ÐаÑик". What encoding problems do i have? I also cannot send this variable to DB-queues procedures, it's in wrong encoding also(

Nikita Semenov
  • 2,111
  • 4
  • 18
  • 31

0 Answers0