Skip to content

Non-utf8 characters in user name makes plugin crash on startup #26

@joepal1976

Description

@joepal1976

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.

See makehumancommunity/community-plugins-mhapi#7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions