From cb5d6d5c30ab6235283005530fadd0d185b38499 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 28 Apr 2010 23:06:08 +0000 Subject: [PATCH] Fix charset setting for plugin localizations; default setting was blanking out non-ASCII chars. Needed for eg Bulgarian translation of Facebook plugin, was previously showing all as ???s. Now works yay! --- lib/plugin.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/plugin.php b/lib/plugin.php index 65ccdafbb0..f63bdf3093 100644 --- a/lib/plugin.php +++ b/lib/plugin.php @@ -91,6 +91,7 @@ class Plugin $path = INSTALLDIR . "/plugins/$name/locale"; if (file_exists($path) && is_dir($path)) { bindtextdomain($name, $path); + bind_textdomain_codeset($name, 'UTF-8'); } } }