]> git.mjollnir.org Git - moodle.git/commitdiff
formslib file upload: MDL-17403 try adding accept-charset="utf-8" to forms to fix...
authortjhunt <tjhunt>
Thu, 27 Nov 2008 02:49:02 +0000 (02:49 +0000)
committertjhunt <tjhunt>
Thu, 27 Nov 2008 02:49:02 +0000 (02:49 +0000)
lib/formslib.php

index bcf23d70626914fc7dbeb92fb6d7514a492c48b0..dbcec21a17c4c12aca58d76559223fb6812d2ee7 100644 (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);