KNIME python script UnicodeEncodeError

And I found this question is quite similar as mine:
https://forum.knime.com/t/ascii-problem-unicodeencodeerror-in-python-for-symbols-and-umlauts/11886

The solution here is to add a line “export LC_ALL=en_US.UTF-8” at the beginning of the script, but in my case, this will return a syntax error.