formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix occasional upload problems.

This commit is contained in:
tjhunt 2008-11-27 02:49:02 +00:00
parent a1440be4d8
commit 1327f08eed

View File

@ -976,7 +976,8 @@ class MoodleQuickForm extends HTML_QuickForm_DHTMLRulesTableless {
$this->_pageparams = '';
}
//no 'name' atttribute for form in xhtml strict :
$attributes = array('action'=>$action, 'method'=>$method, 'id'=>'mform'.$formcounter) + $target;
$attributes = array('action'=>$action, 'method'=>$method,
'accept-charset'=>'utf-8', 'id'=>'mform'.$formcounter) + $target;
$formcounter++;
$this->updateAttributes($attributes);