$wpdb->get_row not returning UTF-8 encoded results
-
When I use WordPress’ recommended method of querying the database
$wpdb->get_row($sql)
the results are NOT UTF-8 encoded. However, when I run the exact same query manuallymysql_fetch_assoc($sql)
the results ARE properly UTF-8 encoded.To put a finer point on it:
using $wpdb->get_row($sql) returns:
?§???ˉ?—¥???????????—??|????????¨?€????…?§???ˉ?????“??????????€?????€using mysql_fetch_assoc($sql) returns:
私は日本の回していると思う…私は本当にそう思う。Any clue how to have wpdb return UTF-8 encoded results?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘$wpdb->get_row not returning UTF-8 encoded results’ is closed to new replies.