From d639b79b8c90be48ff75c3eb1c26fb01ab8137ba Mon Sep 17 00:00:00 2001 From: bevalorous Date: Thu, 30 Apr 2015 16:44:03 +0500 Subject: [PATCH] Fixed #92 https://github.com/zendframework/zf1/issues/92 http://framework.zend.com/issues/browse/ZF-11009 --- library/Zend/Search/Lucene/Document/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Zend/Search/Lucene/Document/Html.php b/library/Zend/Search/Lucene/Document/Html.php index 4e09c6dbc5..65126e1aa9 100644 --- a/library/Zend/Search/Lucene/Document/Html.php +++ b/library/Zend/Search/Lucene/Document/Html.php @@ -423,7 +423,7 @@ public function highlightExtended($words, $callback, $params = array()) $wordsToHighlightList = array(); $analyzer = Zend_Search_Lucene_Analysis_Analyzer::getDefault(); foreach ($words as $wordString) { - $wordsToHighlightList[] = $analyzer->tokenize($wordString); + $wordsToHighlightList[] = $analyzer->tokenize($wordString, 'UTF-8'); } $wordsToHighlight = call_user_func_array('array_merge', $wordsToHighlightList);