<?php echo basename("../path/æblegrød"); ?>
basename() is locale aware, so for it to see the correct basename with multibyte character paths, the matching locale must be set using the setlocale() function.