Non-utf8 characters in user name makes plugin crash on startup
Opened this issue · 0 comments
joepal1976 commented
Current use case: "Tài liệu". From user:
Could not load 8_asset_downloader
Traceback (most recent call last):
File "./core\mhmain.py", line 580, in loadPlugin
module.load(self)
File "C:\Program Files\makehuman-community\makehuman\plugins\8_asset_downloader\__init__.py", line 38, in load
downloadView = category.addTask(AssetDownloadTaskView(category))
File "C:\Program Files\makehuman-community\makehuman\plugins\8_asset_downloader\assetdownload.py", line 69, in __init__
self.log = mhapi.utility.getLogChannel("assetdownload")
File "C:\Program Files\makehuman-community\makehuman\plugins\1_mhapi\_utility.py", line 119, in getLogChannel
self.logChannels[name] = LogChannel(name,defaultLevel,mirrorToMHLog)
File "C:\Program Files\makehuman-community\makehuman\plugins\1_mhapi\logchannel.py", line 42, in __init__
f.write("--- " + self.fileName + " ---\n\n")
File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode character '\u0300' in position 30: character maps to <undefined>
This is probably an error in MHAPI. Keeping this issue for reference.