ID 514871 - Extended ASCII languages causes UTF-8 decoding error during Batch renders

Follow

Problem summary
In Windows 10, system language that contain extended ASCII characters causes UTF-8 decoding error upon performing a batch render.
 
Customer reported version
katana.5.0v3
 
Customer reported platform
Windows 10
 
Steps to reproduce
  1. In the Windows start menu, search and open the "Language settings"
  2. Change the "Windows display language" to Japanese.
  3. Select "Administrative language settings"
  4. Click "Change system locale..."
  5. Select "Japanese(Japan)"
  6. Ensure that the Beta: Use Unicode UTF-8 for worldwide language support option is disabled
  7. Restart the computer
  8. Create a simple project and perform a batch render.
 
Expected behaviour
The Batch render would complete without error regardless of what Language you are using.
 
Actual behaviour
The following error is produced:
SyntaxError: invalid syntax[ERROR python.root]: A UnicodeDecodeError occurred in "__init__.py": 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte    Traceback (most recent call last):      File "python/Main\Main.py", line 529, in <module>      File "python/Main\Main.py", line 473, in __main      File "MainBatch.py", line 139, in Main      File "MainBatch.py", line 937, in __renderFrames      File "RenderManager/RenderCore.py", line 1289, in StartRender      File "<decorator-gen-4>", line 2, in FinalizeRender      File "RenderManager/NodegraphUtils.py", line 52, in _wrapped      File "RenderManager/RenderCore.py", line 827, in FinalizeRender      File "RenderManager/RenderCore.py", line 295, in WaitForRender      File "RenderManager/RenderCore.py", line 271, in dispatchMessages      File "__init__.py", line 207, in GetRenderMessages    UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8e in position 0: invalid start byte
 
Workaround
You can enable the Windows Unicode UTF-8 beta option:
  1. In the Windows start menu, search and open the "Language settings"
  2. Select "Administrative language settings"
  3. Click "Change system locale..."
  4. Enable Beta: Use Unicode UTF-8 for worldwide language support and click OK
Alternatively, if you are running Katana with a Launch Script, you can add the following to the start of your batch script to use Unicode UTF-8:
chcp 65001 > NUL
 
Reproduced by support
This bug has been reproduced in:
Katana 5.0v3 - Windows 10 - Japanese
Katana 4.5v3 - Windows 10 - Japanese
 
Unable to reproduce bug in:
Katana 5.0v3 - Windows 10 - English
Katana 4.5v3 - Windows 10 - English
Katana 4.0v8 - Windows 10 - English, Japanese
 
Earliest version tested
4.0v8 - This issue doesn't appear in this version and has regressed
 

    We're sorry to hear that

    Please tell us why