i've been trying to set encoding for mysql connection to utf8
$conn = mysqli_init();
$conn->real_connect("127.0.0.1", null, null, null, 9306, null);
$conn->set_charset('utf8');
var_dump($conn->get_charset());die
but it's still latin1;
i need to use only mysqli because now i'm using SphinxQL query builder https://github.com/FoolCode/SphinxQL-Query-Builder
i fix the problem here problem was in mb_ encoding functions