how to type the copyright symbol ©

Asked by Harry C.

I have been trying to some text that contains the copyright symbol ©. type(u"\u00A9") and paste(u"\u00A9") both fail me. Is there some proper way to get this symbol?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Harry C.
Solved:
Last query:
Last reply:
Revision history for this message
Harry C. (harryc-m) said :
#1

also, I'm using pickle.load to read a dump file that contains the ©. THEN that data is being typed.

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

--- type() generally cannot be used with non-ascii text and is restricted to the keys on the US-qwerty keyboard (most special characters not supported though)

--- there is some inconsistency in the handling of unicode specifications. I will report a bug on that

--- at least on my Mac
paste("© this is a copyright")
works, since the IDE supports litterally typed unicode characters.

Revision history for this message
Harry C. (harryc-m) said :
#3

ya the problem was i was getting the symbol from an external file. i thought that the file was encoded in UTF-8, but it turns out that it converts back to unicode or something when it is written to file. what i had to do was use .encode("UTF-8") and then everything was good.

Basically:
paste("©") works.
paste(u"\u00a9") does not work.
paste(u"\xc2\xa9") works too.
paste(u"\u00a9".encode("utf-8")) works and is essentially what i used (the "\u00a9" text was coming in from file)

thanks