Re: [Sikuli-driver] [Question #670783]: [1.1.0] Windows: Different character encoding running in IDE and from commandline

2018-07-26 Thread RaiMan
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

RaiMan proposed the following answer:
ok, tested with 1.1.0 and 1.1.3 on Windows 10 latest Java 8.

This finally worked for me:

text = Env.getClipboard() # contains Unicode chars
uprint(text) # does not print correctly on commandline (known problem)

text1 = "รถ"
text2 = ucode(text1)

#text = text + "\n" + text1 # does not work (ascii codec error)
text = text + "\n" + text2 # works
uprint(text) # see above
paste(text) # works bot in IDE and from commandline


conclusion:
- assigning with Env.getClipboard() works

- adding text with Unicode chars using + only works if text is encoded
correctly (using ucode(text) or unicode(text, "utf8"))


paste(text) works in all cases

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #670783]: [1.1.0] Windows: Different character encoding running in IDE and from commandline

2018-07-26 Thread RaiMan
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Summary changed to:
[1.1.0] Windows: Different character encoding running in IDE and from 
commandline

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #670783]: Different character encoding when using CMD instead of IDE

2018-07-26 Thread RaiMan
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Open => Answered

RaiMan proposed the following answer:
sorry for ignoring.
I will take a look now.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #670783]: Different character encoding when using CMD instead of IDE

2018-07-26 Thread Max
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Expired => Open

Max is still having a problem:
the issue still exists. can i provide more helpful information? just
tell me what you need. thanks a lot!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #670783]: Different character encoding when using CMD instead of IDE

2018-07-26 Thread Launchpad Janitor
Question #670783 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670783

Status: Open => Expired

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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp