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

actionscript 3 - TweenLite does not work with object -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

c# - Global Variables vs. ASP.NET Session State -