-
Sub-task
-
Resolution: Won't Fix
-
Minor
-
None
-
1.8
-
None
-
Linux / Firefox 2.0.0.1
-
MOODLE_18_STABLE
I have realized that UTF8 NBSP character copied (or typed as Alt+0160) into the <input> or <textarea> field is converted into ordinary space by browser/server and I can not access it in the $_POST variable. Please, could you try and test following script with your browser and operating system and provide a result report?
<html>
<body>
<?php
if (isset($_POST['var'])) {
$var = $_POST['var'];
echo "##$var##<br />";
for ($i=0 ; $i < strlen($var) ; $i++)
}
?>
<form method="post" action="<? echo $_SERVER['PHP_SELF'];?>" >
(1) Type ordinary space and submit (2) Type nbsp (Alt+0160) and submit (3) compare:
<input name="var" type="text" />
<input type="submit" />
</form>
</body>
</html>