Version: Nsight Systems 2022.2.1
Environment: Windows 10 in South Korea
Problem: Python encoding error occurs when read a report file(.splite) in ‘Expert System View’ and ‘Stats System View’
<fig.1 Python encoding error in ‘Expert System View’>
<fig.2 Python encoding error in ‘Stats System View’>
- What I did: I set PYTHONIOENCODING=utf-8
I think this problem is that nsys makes report file as ASCII (cp949) in Windows10.
Please modify that nsys can make report files as UTF-8 for Windows10 users in South Korea.
Thank you for reporting this. The issue, as you reported, is that the internal version of Python, used to support stats reports and expert-systems rules, does not support the cp949 encoding on Windows. This bug has already been identified and fixed in our current release branch, and will be available in the next release.
Until then, as a work-around, you can set the environment variable NSYS_PYTHONIOENCODING to utf-8. You were correct to think setting PYTHONIOENCODING should have fixed the issue, but since many of our customers use Nsight Systems to profile Python applications, the internal Python is configured to only pay attention to env vars with the prefix “NSYS_PYTHON…” rather than just “PYTHON…”. This allows customers to use different values for their application without affecting the Python environment Nsight Systems is using.
Thank you for reply !
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.