Comment 6 for bug 862060

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: X-1.0rc3 (931): Windows7: Chinese: Crashes on capture and images not found

I could reproduce the error on my german Windows 7 Sikuli build 927

The problem are the unicode characters in the image filename.

having e.g. the utf-8 character "AD00" (some Hangul whatever ;-) shows the character in the IDE environment as compound Hangul letter.

When using it as part of a filename (e.g. absolute image path), in the windows filename, this one unicode character is replaced by extended ascii characters (in this case ê` ), with the effect that the find() says: not found on screen with the correct filename.

to reproduce:
imgx = "afilename containing non ascii.png"
img = capture()
import shutil
shutil.move(img, getBundlePath()+"\\"+imgx) # works only if imgx does not exist yet

***** Conclusion in this case: If the script would be saved in a path containing only ascii characters and the image filenames too only consist of ascii characters, then it should work.