We use cookies
We use cookies to optimize our website. By continuing to browse the site, you agree to our use of cookies.
Control panel
  • Русский
  • Українська
  • English
  • UAH
  • USD
  • RUB
  • EUR
  • 0-800-307-307 Hotline
  • +38 (044) 392-74-33 Kiev
  • +38 (057) 728-39-00 Kharkiv
  • +38 (056) 794-38-31 Dnipro
  • +38 (032) 229-58-93 Lviv
  • +38 (048) 738-57-70 Odessa
  • +38(093) 170-15-42  Life
  • +38 (067) 400-88-44 Kievstar
  • +1(888)393-24-51  USA, Toll free
  • +44(131)507-01-14  Great Britain
  • +7 (499) 348-28-61 Moscow

2.10.12. File name encoding conversion

On the hosting, the names of files and directories are encoded in UTF-8 encoding, so if you copy files with the name encoding to CP-1251 (which is used in Windows) and there are Cyrillic characters in their name, they need to be recoded.

To convert the encoding, do the following:

  1. Run the command
    convmv -r -f cp1251 -t utf8 --notest ~/path/to/files/*.png

Command Description:

  • Key -r - means recursive change of the encoding of names in all subdirectories.
  • After the key -f the initial encoding is indicated.
  • After the key -t indicates the encoding that should be installed as a result. (We recommend using UTF-8 encoding.)
  • Key –notest - sets the parameter to immediately change the encoding of names without further confirmation.
  • In line ~/path/to/files/*.png you need to specify the path and file extension:
    • ~/path/to/files - the path to the files to be converted. ~/ stands for the user's root directory. For example, the directory example.com/images/ indicated as ~/example.com/www/images/.
    • *.png - means that you need to convert all files with the extension .png... To convert the names of absolutely all files, you must specify the symbol *.