I want to convert some characters before inserting them into database for example
Ž, Ć
I get data from post, and sanitize it on this whay
$ime = (string) htmlentities(mysql_real_escape_string($data['txtIme']), ENT_COMPAT,'UTF-8', true);
In some reason I get still Ž, Š into my database