--- upload.php.orig	2008-10-01 17:19:46.000000000 +0400
+++ upload.php	2008-10-01 17:19:59.000000000 +0400
@@ -183,7 +183,7 @@
 					// Make HTML in the description redundant ;¬)
 					$description = $this->Format($description, "preformat");
 					$description = $this->Format($description, "safehtml");
-					$description = htmlentities($description);
+					$description = htmlentities($description,ENT_COMPAT,$this->GetCharset());
 
 					// 5. insert line into DB
 					$this->Query("insert into ".$this->config["table_prefix"]."upload set ".
