IDE: Can't run single line containing non-ASCII - a bug

Asked by Dimitri Conrozier

bug tracked at GitHub: https://github.com/RaiMan/SikuliX1/issues/591
-----------------------------------------------------------------------------------------------------------

Hi !
Problem with this code ;

a="tést"
b="test"
print(b)
print(a)
print("tést")

When i run it all (CTRL+R), everything print normaly (output is "test tést tést").
But when i run only the last line (CTRL+MAJ+R) i've got this error :

[error] JythonRunner: runPython: (
print("tést")
) raised: SyntaxError: Illegal character in file '<string>' for encoding 'utf-8'

How can i fix this ? Thanks !

Path to file is : "C:\Users\xnyb537\Documents\workspace\Git\sikulix_sytm\scenarii\test.sikuli\test.py"
Sikulix2.0.5-win
Win 10

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

still under investigation

Revision history for this message
RaiMan (raimund-hocke) said :
#4

With the IDE feature RunSelection the ute-8 specification is not automatically prepended (as with running the full script).

This is a bug.

Instead of print() use uprint() and you can use the feature RunSelection.

Revision history for this message
RaiMan (raimund-hocke) said :
#5

tracked as bug