hairr / chatbot

A chatbot module for Wikia
2 stars 5 forks source link

UnicodeEncodeError #1

Closed ty-a closed 11 years ago

ty-a commented 11 years ago

image

hairr commented 11 years ago

I fixed the UnicodeEncodeError, with the version 1.0.4a. It was a simple string_escape decoding, this will fix the issue when printing the text.

Just, for quick reference to the code:

var = string.decode('string_escape')

This will return a string in 2.X but bytes in 3.X.