I’ve just a simple query to fetch a students records by his name, written in Bengali.
$student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name="আবুল কালাম আজাদ"");
Although my database have a record for ‘আবুল কালাম আজাদ’, the query returns zero row! But instead of this query, it works absolutely fine-
$student_rcrd = $wpdb->get_results("SELECT * FROM student WHERE name="Abul Kalam Azad"");
- The name field in the database is ‘utf8_unicode_ci’