sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29834
Re: [Question #259687]: UnicodeEncodeError when calling a script in some other script
Question #259687 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/259687
Status: Open => Answered
RaiMan proposed the following answer:
In this case, the source of your imported script contains one or more
unicode/utf-8/non-ASCII characters (might be in comments).
If this is by intention, then put the following line at the beginning of the imported file
# -*- coding: utf-8 -*-
BTW:
compareValue = "We built the new Hydra console just for you! We encourage you take a tour to check out the new look and functionality. If you’d like to continue using the old Hydra, click “Switch Back.”"
if this is not a typo here, the this is wrong and has to be (escaped double quote inside)
compareValue = "We built the new Hydra console just for you! We encourage you take a tour to check out the new look and functionality. If you’d like to continue using the old Hydra, click \“Switch Back.\”"
or (wrapping single quote)
compareValue = 'We built the new Hydra console just for you! We encourage you take a tour to check out the new look and functionality. If you’d like to continue using the old Hydra, click “Switch Back.”'
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.