--- database.php.orig 2012-09-04 07:58:55.062099935 +0000 +++ database.php 2012-09-04 08:00:56.003099418 +0000 @@ -569,13 +569,16 @@ // wipe current data row to stay in low memory boundaries $data[$i++] = ''; $row = explode("\t", $row); // unescape divider chars - $row = str_replace('\\\\', "\\", $row); - $row = str_replace('\\n', "\n", $row); - $row = str_replace('\\t', "\t", $row); + foreach($row as &$rstr) + $rstr = strtr($rstr, array( + "\\\\" => "\\", + '\\n' => "\n", + '\\t' => "\t" + )); // prepare data $j = 0; foreach ($row as $cell)