Bash get unicode character from encoded char

Reply to comment

$ echo -n "”" | python -c 'import sys; print [sys.stdin.read()]'

['\xe2\x80\x9d']