Feat: Change encoding
This commit is contained in:
parent
a122e2bba1
commit
ab850bcedb
@ -20,7 +20,7 @@ steam_handler.setFormatter(formatter)
|
||||
# création de l'objet logger qui va nous servir à écrire dans les logs
|
||||
# on met le niveau du logger à DEBUG, comme ça il écrit tout
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.setLevel(logging.DEBUG)
|
||||
logger.setLevel(logging.ERROR)
|
||||
logger.addHandler(steam_handler)
|
||||
|
||||
|
||||
@ -105,7 +105,7 @@ def pdflatex(latex_file, output_dir=""):
|
||||
|
||||
latex_error_logger = filter_errors(generic_sink(logger.error))
|
||||
for line in compilation.stdout:
|
||||
latex_error_logger.send(line.decode("utf-8").rstrip('\r\n'))
|
||||
latex_error_logger.send(line.decode("latin-1").rstrip('\r\n'))
|
||||
|
||||
logger.debug(f"{latex_file.name} has been compiled in {output_dir}")
|
||||
pwd.cd()
|
||||
|
Loading…
Reference in New Issue
Block a user