I need to create directories in utf-8 Cyrillic. i use mkdir
function for this, then i try to do:
$img_dir = './img/product/'.htmlspecialchars($_POST['title']);
if(!is_dir($img_dir)){
mkdir($img_dir, 0700);
};
in $_POST['title']
i have titles of product something like that : "Кеды", "Макасины" but this function create folders with such names: "Кеды","Макасины".
This is associated with the coding of my OS? How can i solve this problem?