Forums

$wpdb->get_row not returning UTF-8 encoded results (3 posts)

  1. Baden
    Member
    Posted 8 months ago #

    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 manually mysql_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?

  2. Baden
    Member
    Posted 8 months ago #

    Bump. The database is utf-8 encoded. There must be something simple I am missing--any help is greatly appreciated.

  3. krembo99
    Member
    Posted 4 months ago #

    having the same problem - If anyone have a solution, would be greatly appreciated .

Reply

You must log in to post.

About this Topic