Check if filename contains Umlauts in php -


is there way, check in php if filename has umlauts?

there's quick way this:

$s = 'äëüïö';  if (preg_match('/&[a-za-z]uml;/', htmlentities($s, ent_compat, 'utf-8'))) {     echo 'filename contains umlaut'; } 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -