From 07dfd08851123e15d3fe0db8ee1b10e644ff07bc Mon Sep 17 00:00:00 2001 From: orb <orb@244284.no-reply.drupal.org> Date: Wed, 8 Feb 2012 13:22:10 -0500 Subject: [PATCH] Issue #1140194 by orb | emorency: Fixed SQLSTATE[HY000]: General error: 1366 Incorrect string value for a field with accents. --- libraries/ParserCSV.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/ParserCSV.inc b/libraries/ParserCSV.inc index 1c13dfe9..e8cec487 100644 --- a/libraries/ParserCSV.inc +++ b/libraries/ParserCSV.inc @@ -214,7 +214,7 @@ class ParserCSV { $currentField = ''; $fields = array(); - while ($currentIndex <= strlen($line)) { + while ($currentIndex <= drupal_strlen($line)) { if ($quoted) { $nextQuoteIndex = strpos($line, '"', $currentIndex); -- GitLab