Hello

I run into a strange behaviour of DRUPAL Cache.

Certain characters break the cache (check for screenshot here http://www.netnode.ch/cacheproblem.jpg).

The problem occured with UTF-8 copy sign and ü.

When I load the contect without cache, everything runs corret. Obviously the cache is not produces correctly by certain modules.

Do you have any idea?

Lukas

Comments

lukas.fischer’s picture

Clarification!

The cache is being produced as shown in the screenshot. The problem is now, when I load the content from cache via

if ($cached = cache_get($cid, content_cache_tablename())) {
    foreach ($cached->data as $key => $value) {
      $node->$key = $value;
    }
  }

certain fields (the fields with the special char) are missing...

When I want to show the contents of the node in the templates, it ends in errors...

derjochenmeyer’s picture

same problem.

----------------------
okay.cool

derjochenmeyer’s picture

Fix: I changed the collation of the database from latin1_swedish_ci to utf8_general_ci

ALTER DATABASE `yourDBname` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci

----------------------
okay.cool