From b2cad5c58deb5eed413c9a6a34f53911c0818d95 Mon Sep 17 00:00:00 2001 From: Marco Feuerstein Date: Thu, 29 Jun 2023 14:56:11 +0200 Subject: [PATCH] Use file system encoding. --- port/PyAssimp/pyassimp/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/port/PyAssimp/pyassimp/core.py b/port/PyAssimp/pyassimp/core.py index 690a34e59..c7ceaa9cd 100644 --- a/port/PyAssimp/pyassimp/core.py +++ b/port/PyAssimp/pyassimp/core.py @@ -401,7 +401,7 @@ def available_formats(): from ctypes import byref extension_list = structs.String() _assimp_lib.dll.aiGetExtensionList(byref(extension_list)) - return [e[2:].upper() for e in str(extension_list.data, "utf-8").split(";")] + return [e[2:].upper() for e in str(extension_list.data, sys.getfilesystemencoding()).split(";")] def _finalize_texture(tex, target): setattr(target, "achformathint", tex.achFormatHint)