[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745605: apache2: ignores AddDefaultCharset



Maybe this is related too, if you put a form with multipart/form-data
the string is garbled. try this:

index.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form method="post" enctype="multipart/form-data" action="post.php">
  <textarea name="text"></textarea>
  <input type="submit" value="Enviar" />
</form>
</body>
</html>

post.php:
<?php
var_dump($_POST["text"]);

To solve this you need to replace 'enctype="multipart/form-data"' with
'enctype="multipart/form-data;charset=utf-8"'


Reply to: