Using unicode in lists

Hi there,

I'm working on a small card game and I wanted to use the unicode characters suites = ["♦", "♥", "♠", "♣"] to identifiy suites.

Unfortunatly, PyCharm outputs:

♥ ['\xe2\x99\xa5']

when executing following code:

# -*- coding: utf-8 -*-

print "♥", ["♥"]

Is there a way to not get the unicode byte representation and instead the actual heart symbol?

Greetings,

anopheles

0

Please sign in to leave a comment.