I'm using Slovenia characters and PHP MySQL select where clause to fetch results from the database. This query is working properly with English letters but has an issue with Slovenia letters like (ć, č, đ, š). I have set database collation to utf8_slovenian_ci. And encoding of php files is utf8
Asked
Active
Viewed 75 times
1 Answers
0
I don't know how Slovenia characters are processed, but try this (it worked with Arabic characters):
$string = "ćčđš";
$mysqlEscaped = mysqli_escape_string($string);

Evara
- 84
- 2
- 11