Skip to content

Commit 9acb585

Browse files
authored
Encode string value for c api (#1552)
1 parent ef71d82 commit 9acb585

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OMSimulatorPython/capi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def setBoolean(self, cref, value):
226226

227227
def setString(self, cref, value):
228228
'''Set a string value for a model or system.'''
229-
status = self.obj.oms_setString(cref.encode(), value)
229+
status = self.obj.oms_setString(cref.encode(), value.encode())
230230
return Status(status)
231231

232232
def setSolver(self, cref, solver):

0 commit comments

Comments
 (0)