public function getEmailCharset() { if (isset($GLOBALS['prefs']) && ($charset = $GLOBALS['prefs']->getValue('sending_charset'))) { return $charset; } return ($charset = $this->nlsconfig->curr_emails) ? $charset : $this->getLanguageCharset(); }