I am using wordpress and added a function to change the uploads directory folder structure
everything goes as expected but when the function deals with Greek characters outputs text like
ΓΒ‘ΓΒ…ΓΒΈΓΒ±ΓΒ―ΓΒΓΒµΓΒ„ΓΒΏ
to be more specific
i have setup the variables
$client
that holds a client's name and
$customdir
that holds the directory path
$client='πελάτης';
$customdir ='/pm/' . $_POST['post_type'] . '/' . $_POST['YEAR']. '/' . $client;
I use the $customdir
variable that contains $client
var too, to create the uploads directory and if $client var is in english everything works flawlessly..
Can you help me to encode correctly the $customdir
variable to be able to create greek named directories ??