X-1.0rc2: inconsistent handling of unicode specifications

Bug #795408 reported by RaiMan on 2011-06-10
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

works: paste("te©st"); type(Key.ENTER)

error: unicode character ignored: paste("test1"+u"\u00A9"+"trailer")

works: print "©"

Error: print u"\u00A9"
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa9' in position 0: ordinal not in range(128)

RaiMan (raimund-hocke) on 2011-06-10
description: updated
Tsung-Hsiang Chang (vgod) wrote :

This looks like not a Sikuli's bug.
How did you do these tests?

RaiMan (raimund-hocke) wrote :

This is my test:

-- in any cases I just use
print u'\u00A9'

-- running in IDE
I get the error:
print u'\u00A9' UnicodeEncodeError: 'ascii' codec can't encode character u'\u00A9' in position 0: ordinal not in range(128)

-- each possible form of running sikuli-script.jar from commandline (with a test.sikuli, using option -i, running the contained jython via org.python.util.jython interactively or with the .py from test.sikuli):
no error message, but a single ? (question mark) is printed

-- using my standalone Jython 2.5.1:
the expected copyright sign (©) is printed

RaiMan (raimund-hocke) on 2013-02-22
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
importance: Medium → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
tags: added: fkt-paste
RaiMan (raimund-hocke) on 2013-05-14
Changed in sikuli:
milestone: x1.0 → x1.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions