Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-01932// Views: AA-01932// Created: 2020-07-22 10:40:09// Last Updated: 2020-07-22 12:09:56
Problem & Solution
RT-LAB compilation UnicodeDecodeError: 'ascii' codec can't decode byte 0xce

Problem

When I try building the demo model rtdemo2, at the end of the process, it shows error message:


Solution

The file "c:\opal-rt\rt-lab\2019.3\common\python\rtlab\report\xmlutil.py", is generating xml files for the project. Check characters that is not utf-8 in the XML files (i.e. host_report.xml) under the projects path: \rtdemo2\report\temp.

For example, in this case, there's Chinese characters in the path, which is defined in the MATLAB path.


User can rename the path folder/file name with English (or any other utf-8 Characters) to avoid this error.

More about the Python UnicodeDecodeError: https://wiki.python.org/moin/UnicodeDecodeError