function is_utf($str){if(iconv("UTF-8","UTF-8",$str)==$str)return true;elsereturn false;}
Source: https://habr.com/ru/post/48661/More articles:Humor: Google Chrome will not let go to GoogleLock IE8 from auto updateBattle BarcodeDo you use antivirus?Most musicians benefit from piracyTransparent iron B-IRON 725Sony Cybershot G3: the first camera with a browserLet's beat Ruby together! Drop threeE-commerce and UkrPoshtaCHDK: expanding the capabilities of Canon's digital camerasAll Articles