I'm struggling to have 7za.exe create an archive including non latin characters. The encoding is utf-8, characters are cyrillic. I have a folder with the 4 files:
7za.exe privet.txt Кириллица.txt test.py
where the content of test.py is the following:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
SOURCE_FILE = "Кириллица.txt"
DEST_ARCHIVE = "Кириллица.7z"
import subprocess
subprocess.call('7za a -bd -y privet.7z privet.txt', shell=True)
cmd_str = '7za a -bd -y %s %s' % (DEST_ARCHIVE, SOURCE_FILE)
subprocess.call(cmd_str, shell=True)
While I can create privet.7z from privet.txt, I cannot create Кириллица.7z from Кириллица.txt (an empty archive named Кириллица.7z is instead generated).
The output from 7za.exe is:
C:\BEPPE\STAMPARE\TEST_7za_cyrillic>python test.py
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
Creating archive privet.7z
Everything is Ok
7-Zip (A) 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
Scanning
ÐsиÑ_иллиÑ┼а.txt: WARNING: Impossibile trovare il file specificato.
Creating archive ÐsиÑ_иллиÑ┼а.7z
WARNINGS for files:
ÐsиÑ_иллиÑ┼а.txt : Impossibile trovare il file specificato.
----------------
WARNING: Cannot find 1 file
Can anybody help me with this? I also tried from a batch script test.bat with the following content:
7za.exe a -bd -y privet.7z privet.txt
7za.exe a -bd -y Кириллица.7z Кириллица.txt
but the result was the same.

