self.config = QSettings( "config.ini", QSettings.IniFormat)
self.config.setIniCodec('utf-8')
self.config.setValue('Процессор ремонта дроидов 2', 80)
[General]
%U041F%U0440%U043E%U0446%U0435%U0441%U0441%U043E%U0440%20%U0440%U0435%U043C%U043E%U043D%U0442%U0430%20%U0434%U0440%U043E%U0438%U0434%U043E%U0432%202=80
from string import printable
from transliterate import translit
def filter_latin(item):
""" filter on latin characters """
if not all(map(lambda c: c in printable, item)):
return translit(item, reversed=True).replace(" ", "_")
QSettings settings;
settings.setIniCodec("UTF-8");