iconv("windows-1251", "UTF-8", $string); PHP -> Flash iconv("UTF-8", "windows-1251", $string); Flash -> PHP