Dynamo for Civil 3D - UnicodeEncodeError

Hello, I encounter error when using AutoCAD_Python_PSet_DumpPropertySetValuesToCSV.dyn and property set text properties with “ě” “ů” letters
Do you have any idea how to tweak the Python code?
Thanks in advice. Here is video: https://knowledge.autodesk.com/community/screencast/39f0194a-fa18-4e6a-86ba-a60dea7a5bab

>     Warning: IronPythonEvaluator.EvaluateIronPythonScript - The operation failed.
>     Traceback (most recent call last):
>       File "<string>", line 30, in <module>
>       File "C:\ProgramData\Autodesk\C3D 2020\Dynamo\samples\Data\AutoCAD\pset\pset_utils.py", line 312, in dump_ps_values_csv
>     UnicodeEncodeError: 'ascii' codec can't encode character '\u16F' in position 57: ordinal not in range(128)

The string should be encoded using utf8 https://docs.python.org/3/howto/unicode.html

1 Like