$this->register_prefilter('at_to_globals');
$this->register_prefilter('trimwhitespace');
+ $this->register_prefilter('form_force_encodings');
$this->addJsLink('xorg.js');
}
}
$this->register_outputfilter('hide_emails');
$this->addJsLink('wiki.js');
+ header("Accept-Charset: iso-8859-15, latin9, us-ascii, ascii");
if (!$globals->debug) {
error_reporting(0);
}
// }}}
+// {{{
+
+function form_force_encodings($source, &$smarty)
+{
+ return preg_replace('/<form[^\w]/',
+ '\0 accept-charset="iso-8859-15 latin9 us-ascii ascii" ',
+ $source);
+}
+
+// }}}
// {{{ function hide_emails
function _hide_email($source)