some utf-8 characters are not being rendered correctly in jupyter notebook while they are being rendered correctly in Python console

I am trying to use the encoding in the figure comes from w3.org. enter image description here

here is the code (Python3.6)

>>> print(b'\xe2\xb4\xb0'.decode('utf8'))
>>> print(b'\xe2\xb5\xa3'.decode('utf8'))

this piece of code works well in console though, unknown square will be rendered in jupyter notebook with chrome 72 on MacOS 10.13.6.

things like this

while other characters are being rendered correctly both in console and jupyter notebook.

>>> print(b'\xe5\xa5\xbd'.decode('utf8'))
好
>>> print(b'\xd7\x90'.decode('utf8'))
א

how to render those characters in the figure correctly in jupyter notebook?

728x90

0 Answers some utf-8 characters are not being rendered correctly in jupyter notebook while they are being rendered correctly in Python console