pythonshell is not working in node because there’s an apostrophe in the output of python

The issue here is that the that you have in your string is not ascii. The ascii equivalent is ', note the difference.

Getting unicode errors when printing is common in Python, and what you need to do is encode the string before you print it.


print g_data[5].text.encode('utf-8')

More information can be found in the Python documentation –

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top