Jump to content

Recommended Posts

Posted

Пытаюсь в заданной папке и всех ее подпапках преобразовать файлы php (и PHP) из cp1251 в utf8

Пробовал такие команды:

find /папка -name "*.php" -exec enconv -x UTF8 {} \;

find /папка -iname "*\.php" -exec enconv {} \;

find /папка -name "*.php" -exec enconv {} \;

find /папка -name "*.php" |enconv

find /папка -name "*.php" |enconv -x UTF-8

не конвертирует.

а вот эта:

find /папка -type f -iname "*\.php" -exec recode -f cp1251..utf8 {} \;

портит файлы, которые уже в кодировке UTF-8

Помогите пожалуйста.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...