<?php $text = 'Prosper Mérimée, как дела?'; $encoding = mb_detect_encoding($text); echo iconv($encoding, 'CP1251', $text) . "\r\n"; echo iconv($encoding, 'CP1251//TRANSLITE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//IGNORE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//TRANSLITE//IGNORE', $text) . "\r\n"; echo iconv($encoding, 'CP1251//IGNORE//TRANSLITE', $text) . "\r\n";
You have javascript disabled. You will not be able to edit any code.