When saving a file to the server, its name contains characters (see the pictures below). The name of the file sent to the database is displayed in the correct characters.
$date = date("Ymd H:i:s"); $filedate = date("Y\_m\_d\_H\_i\_s", strtotime($date)); $filename = $_POST['name'].'_'.$filedate.''; move_uploaded_file($_FILES['img']['tmp_name'], $Dir.'/'.$filename.'.jpg'); /ΠΈΠΌΡ ΡΠ°ΠΉΠ»Π° Π±ΡΠ΄Π΅Ρ Π±ΡΠ΄Π΅Ρ ΠΈΡΠΊΠ°ΠΆΠ΅Π½ΠΎ, Π° ΠΈΠΌΠ΅Π½Π½ΠΎ ΡΠ°ΡΡΡ ΠΈΠΌΠ΅Π½ΠΈ $_POST['name'] mysqli_query($CONNECT, "INSERT INTO `load` VALUES ('', '$_POST[name]', '$_POST[category]', 0, 0, '$_SESSION[USER_NAME]', '$_POST[text]', '$date', '$Active', '$num_img', '$num_file', '$filename')"); /Π² Π±Π΄ Π·Π°ΠΏΠΈΡΠ΅ΡΡΡ ΠΈΠΌΡ, ΡΠΎ ΠΊΠΎΡΠΎΡΠΎΠ΅ ΠΌΡ ΠΈ ΠΎΠΆΠΈΠ΄Π°Π»ΠΈ File names in the database:
File names on the server:
Changed the page encoding to UTF-8 - did not help

