From eace4a9d9b24d3fdbe5922eb33b73befce811cfb Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 25 Jun 2010 20:19:13 +0000 Subject: - Patch #624086 by limikael, Dmitriy.trt: custom accept-charset for forms. --- includes/form.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/form.inc b/includes/form.inc index a115bf09b..5ce1c6568 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -3017,7 +3017,12 @@ function theme_form($variables) { $element = $variables['element']; // Anonymous div to satisfy XHTML compliance. $action = $element['#action'] ? 'action="' . check_url($element['#action']) . '" ' : ''; - return '
\n
" . $element['#children'] . "\n
\n"; + + if (empty($element['#attributes']['accept-charset'])) { + $element['#attributes']['accept-charset'] = "UTF-8"; + } + + return '
\n
". $element['#children'] ."\n
\n"; } /** -- cgit v1.2.3