How to json_encode array with cyrilic accents?
// преобразование utf8 в cp1251
$current_charset = 'windows-1251';
array_walk_recursive($m_post, function(&$value) use ($current_charset) {
$value = iconv($current_charset, 'UTF-8', $value);
});
$str_post = array('str_post' => json_encode($m_post));