summaryrefslogtreecommitdiff
path: root/lib/plugin.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-04-28 23:06:08 +0000
committerBrion Vibber <brion@pobox.com>2010-04-28 23:06:08 +0000
commitcb5d6d5c30ab6235283005530fadd0d185b38499 (patch)
treecfd5f06b3ab2b97afb9cd21760152b4d50241377 /lib/plugin.php
parentf5c82d9d60afd044f9652865d3e481dec974075f (diff)
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!
Diffstat (limited to 'lib/plugin.php')
-rw-r--r--lib/plugin.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/plugin.php b/lib/plugin.php
index 65ccdafbb..f63bdf309 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');
}
}
}