I'm translating my Python application to french. I generated .po
file but I have a problem that the french characters are displayed incorrectly.
Example:
exécution
appears exÚcution
PS:I'm using gettext
for translation.
even when I use chcp 1252 it doesn't work.. I'm using Pydev and when I tried to print my data to Pydev console it worked but it's not what I want : that's the way I add my handlers to the logger may be that's the problem :
if givesFileName:
if FileName is None:
print('Please specify an output Text File Name')
# Exit with error
sys.exit()
#create file handler
fh = logging.handlers.RotatingFileHandler(FileName, mode="w",encoding="utf-8")
fh.setLevel(logging.DEBUG)
logger.addHandler(fh)
else:
#create console handler
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
logger.addHandler(ch)"