Display characters instead of unicode numbers in PyCharm viewport

The problem I can can be redone by pasting this code in PyCharm:

chinese = [u'这', u'是', u'一', u'些', u'中', u'文']
print chinese

When you set a breakpoint on a line printand start debugging, you can see that the variable chinesein the viewport is displayed as

[u'\u8fd9', u'\u662f', u'\u4e00', u'\u4e9b', u'\u4e2d', u'\u6587']`

However, I expect it to be

[u'这', u'是', u'一', u'些', u'中', u'文']

If I have not double-clicked this variable, it does not display characters directly.

How can I solve this problem?

+3
source share

All Articles