if I type this into python console
>>> ord(u'⚤')
it work but when I try to put it into python -c from bash
python -c "print ord(u'⚤')"
it throws:
File "<string>", line 1
print ord(u'⚤')
^
SyntaxError: EOL while scanning string literal
Anybody know why?
The problem was, when you type ⚤ in bash it overlaping on next character so
'⚤'look like this'⚤and'⚤'.look like this'⚤.when I copy what I typed it showpython -c "print ('⚤'')"but display aspython -c "print ('⚤')"so it look like correct code.So my code look like this in terminal
but code that I run was like this
because I copied that character from other place in my terminal and I select by accedent 2 characters the one I wanted and the one that was overlaping.