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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -