Skip to content

Commit 92322f4

Browse files
committed
Use codec in run_command
1 parent 3b553d1 commit 92322f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opendssdirect/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import warnings
55

66
from ._utils import get_string, dss_py
7+
from . import _utils
78

89
is_pandas_installed = True
910

@@ -47,7 +48,7 @@ def run_command(text, dss=None):
4748

4849
r = []
4950
for l in text.splitlines():
50-
dss.dss_lib.Text_Set_Command(l.encode("ascii"))
51+
dss.dss_lib.Text_Set_Command(l.encode(_utils.codec))
5152
r.append(get_string(dss.dss_lib.Text_Get_Result()))
5253

5354
return "\n".join(r).strip()

0 commit comments

Comments
 (0)