aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/libghdl/str_table.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/libghdl/str_table.py')
-rw-r--r--pyGHDL/libghdl/str_table.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/libghdl/str_table.py b/pyGHDL/libghdl/str_table.py
index a91268bb4..3f55d1eb3 100644
--- a/pyGHDL/libghdl/str_table.py
+++ b/pyGHDL/libghdl/str_table.py
@@ -36,6 +36,7 @@ from ctypes import c_char_p
from pyTooling.Decorators import export
+from pyGHDL.libghdl import ENCODING
from pyGHDL.libghdl._types import String8Id
from pyGHDL.libghdl._decorator import BindToLibGHDL
@@ -57,4 +58,4 @@ def Get_String8_Ptr(Id: String8Id, Length: int) -> str:
:param Id: String8Id for the string to query.
:return: String8 as string.
"""
- return _String8_Address(Id)[:Length].decode("utf-8")
+ return _String8_Address(Id)[:Length].decode(ENCODING)