Using a special character in an automation script throws an error
e.g. consider this scripta = "Jean-François"print(a)In automation script app when I click on Execute Script it gives the following.
a = "Jean-François"
print(a)
SyntaxError: Non-ASCII character in file '<iostream>', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
I believe it is happening because of this ç in the source code.
ç
Is there any way to fix this issue?
Hi @Rana Ahmed
Try this:
# -*- coding: utf-8 -*-a = "Jean-François"print(a)
Regards!
Hi Martin Fabra,This threw an error in compiling in automation script app.
Hi!
If you can, send me more information:Is it an object script? of attribute? any condition? If you give me more information, I can reproduce it to help you find the solution you are looking for.
3815 Harrison AvenueCincinnati, OH 45211contact@moremaximo.com
Join CommunityInvite ColleaguesLearn MoreAbout UsTerms of Use