Skip to content

Commit dc6bff2

Browse files
committed
Merge pull request #57 from xdelit/patch-1
Returns an incorrect encoding in Cyrillic
2 parents f4486f0 + 7167aee commit dc6bff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/search.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function runSearch() {
109109
$topic = $row['topic'];
110110
$pattern = $row['pattern'];
111111
$thatpattern = $row['thatpattern'];
112-
$template = htmlentities($row['template']);
112+
$template = htmlentities($row['template'],ENT_COMPAT,'UTF-8');
113113
$filename = $row['filename'];
114114
$id = $row['id'];
115115
$action = <<<endLink
@@ -163,7 +163,7 @@ function editAIMLForm($id) {
163163
$topic = $row['topic'];
164164
$pattern = $row['pattern'];
165165
$thatpattern = $row['thatpattern'];
166-
$row_template = htmlentities($row['template']);
166+
$row_template = htmlentities($row['template'],ENT_COMPAT,'UTF-8');
167167
$filename = $row['filename'];
168168
$id = $row['id'];
169169
$form = $template->getSection('EditAIMLForm');

0 commit comments

Comments
 (0)