From: tjhunt Date: Thu, 27 Nov 2008 02:49:02 +0000 (+0000) Subject: formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1327f08eed4f3c03ed33515c4c59e470ca79f347;p=moodle.git formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix occasional upload problems. --- diff --git a/lib/formslib.php b/lib/formslib.php index bcf23d7062..dbcec21a17 100644 --- a/lib/formslib.php +++ b/lib/formslib.php @@ -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);