$str = "Название"; $res = html_entity_decode ($str, ENT_NOQUOTES, "cp1251");