papercite
papercite copied to clipboard
Cache not working with utf8-Strings
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