X-1.0rc2: inconsistent handling of unicode specifications

Bug #795408 reported by RaiMan
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
High
RaiMan

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)

Tags: fkt-paste
RaiMan (raimund-hocke)
description: updated
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

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

Revision history for this message
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)
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)
Changed in sikuli:
milestone: x1.0 → x1.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.