papercite icon indicating copy to clipboard operation
papercite copied to clipboard

Cache not working with utf8-Strings

Open sistlind opened this issue 9 years ago • 0 comments

Hi, DB-based caching is not working, if the data-string consists of utf-chars, e.g. umlauts (öäü). This is a problem of wpdb, because if one row of a table constist of ascii-Strings the whole table will be assumend to be ascii. (https://github.com/WordPress/WordPress/blob/master/wp-includes/wp-db.php#L2329)

The simplest solution ist to change all entrys of the table to utf8: https://github.com/sistlind/papercite/commit/a9d02514710f3949c7a6dd0a06633c86ebe2f769

Best regards, Stefan

sistlind avatar May 11 '15 07:05 sistlind