character set option configured for your blog. Author: Kimmo Suominen Version: 1.2 Author URI: http://kimmo.suominen.com/ */ class CharSets { var $cc; function CharSets() { $this->cc = get_settings('blog_charset'); // . '//TRANSLIT'; if (strncasecmp('UTF-8', $this->cc, 5)) { add_filter('gettext', array(&$this, 'convert_cc')); add_filter('ngettext', array(&$this, 'convert_cc')); } } function convert_cc($text) { return iconv('UTF-8', $this->cc, $text); } } $wppCharSets = new CharSets; ?>