I'm trying to use accent while creating my odoo module in french. in my xml files, I have: UTF-8 encoding like this:
<?xml version="1.0" encoding="UTF-8"?>
but the code always generate errors when i use Accents!
I'm trying to use accent while creating my odoo module in french. in my xml files, I have: UTF-8 encoding like this:
<?xml version="1.0" encoding="UTF-8"?>
but the code always generate errors when i use Accents!
Your XML coding looks fine (same as it's used in core, such as the l10_fr
module)
<?xml version="1.0" encoding="utf-8"?>
This leads me to believe you may need to set the encoding in the Python side. You shouldn't need to do anything but specify the encoding at the top of your file(s):
# -*- coding: utf-8 -*-