Skip to content

Instantly share code, notes, and snippets.

@Bat-Chat
Created March 16, 2016 11:28
Show Gist options
  • Save Bat-Chat/6c55b72c4f662d770377 to your computer and use it in GitHub Desktop.
Save Bat-Chat/6c55b72c4f662d770377 to your computer and use it in GitHub Desktop.
Когда строка состоит из кириллицы и utf-8 могут отображаться символы - "�". Для вывода или замены строки из кириллицы делать следиущее:
$name = 'Кириллица вместе с utf-8';
$name = iconv("windows-1251", "utf-8", $name);
$name = str_replace('Кириллица', '', $name);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment