From 518fbc1d36218fa1a7d5da0da2ba3045164b405a Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sat, 14 Feb 2015 23:52:57 +0000 Subject: [PATCH] GH-514 HTML Reader incorrectly converts some UTF-8 string cells to FALSE after regexp space trim --- Classes/PHPExcel/Reader/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Reader/HTML.php b/Classes/PHPExcel/Reader/HTML.php index c07cb3ac..508672ce 100644 --- a/Classes/PHPExcel/Reader/HTML.php +++ b/Classes/PHPExcel/Reader/HTML.php @@ -217,7 +217,7 @@ class PHPExcel_Reader_HTML extends PHPExcel_Reader_Abstract implements PHPExcel_ { foreach ($element->childNodes as $child) { if ($child instanceof DOMText) { - $domText = preg_replace('/\s+/', ' ', trim($child->nodeValue)); + $domText = preg_replace('/\s+/u', ' ', trim($child->nodeValue)); if (is_string($cellContent)) { // simply append the text if the cell content is a plain text string $cellContent .= $domText;