Tag Archives: UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 128: illegal multibyte sequence

[Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 128: illegal multibyte sequence

An error is reported when odoo starts: Unicode decodeerror: ‘GBK’ codec can’t decode byte 0x80 in position 128: illegal multibyte sequence

The reason is that odoo.exe is resolved when the service starts Error decoding conf configuration file.

Solution: open the root directory of odoo project/odoo/tools/config Py (you can also directly click the error log on the console to find the error reporting place), in line 583

p.read([self.rcfile])

Change to

p.read([self.rcfile],‘utf-8‘)

Just restart.