Skip to content

Commit 45e5963

Browse files
committed
[BUGFIX] *External Script Editor* fixed error if code snippet includes multi-byte character(s) thanks to Harayoki.
1 parent 1a1d852 commit 45e5963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/python/houdini_external_editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def add_watcher(parm):
250250
try:
251251
data = parm.expression()
252252
except hou.OperationFailed:
253-
data = str(parm.eval())
253+
data = str(parm.eval().encode("utf-8"))
254254

255255
with open(file_path, 'w') as f:
256256
f.write(data)

0 commit comments

Comments
 (0)