prova ad aggiungere questa riga al tuo script.
setlocale(LC_CTYPE,'it_IT');