header('Content-Type: text/html; charset=UTF-8');$a = 'áé íó ú';echo utf8_encode(ucwords(utf8_decode($a)));