use the view's encoding when calling htmlentities
authorChuck Hagenbuch <chuck@horde.org>
Sat, 30 May 2009 15:30:01 +0000 (11:30 -0400)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 30 May 2009 15:30:01 +0000 (11:30 -0400)
framework/View/lib/Horde/View/Helper/Text.php

index 435258d..1d97c28 100644 (file)
@@ -47,7 +47,7 @@ class Horde_View_Helper_Text extends Horde_View_Helper_Base
      */
     public function h($var)
     {
-        return htmlentities($var, ENT_QUOTES, 'utf-8');
+        return htmlentities($var, ENT_QUOTES, $this->_view->getEncoding());
     }
 
     /**