From 1da924416cfdcd6ce2dc40b279b5fc0c2829c54f Mon Sep 17 00:00:00 2001 From: Evgeny Gryaznov Date: Thu, 21 Apr 2011 00:44:04 +0200 Subject: [PATCH] fix encoding in operators list --- src/messenger/webim/operator/update.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/messenger/webim/operator/update.php b/src/messenger/webim/operator/update.php index b63999d5..c8694af8 100644 --- a/src/messenger/webim/operator/update.php +++ b/src/messenger/webim/operator/update.php @@ -153,6 +153,7 @@ function print_pending_threads($groupids, $since) function print_operators() { + global $webim_encoding; echo ""; $operators = operator_get_all(); @@ -160,7 +161,7 @@ function print_operators() if (!operator_is_online($operator)) continue; - $name = htmlspecialchars(htmlspecialchars($operator['vclocalename'])); + $name = myiconv($webim_encoding, "utf-8", htmlspecialchars(htmlspecialchars($operator['vclocalename']))); $away = operator_is_away($operator) ? " away=\"1\"" : ""; echo "";