pierredavidbelanger / chatter-bot-api

A Mono/.NET, JAVA, Python and PHP chatter bot API that supports Cleverbot, JabberWacky and Pandorabots.
181 stars 72 forks source link

utf8 encodnig fault in polish in cleverbot #14

Closed skorotkiewicz closed 9 years ago

skorotkiewicz commented 9 years ago

bot1> "Te|017C nie wiesz?" should: "Też nie wiesz?" bot2> "Ty lepiej jed|017A na PGA." should: "Ty lepiej jedź na PGA." bot2> "W jakim mie|015Bcie?" should: "W jakim mieście?"

How to fix encodnig?

pierredavidbelanger commented 9 years ago

Is the cleverbot web site is showing the same problem ? If its the case, I guess I can not help :)

skorotkiewicz commented 9 years ago

On the website it works correctly.

pierredavidbelanger commented 9 years ago

Nice catch.

Indeed, Cleverbot seems to send some unicode chars in this pattern |xxxx where xxxx is the hex value of the unicode.

This commit will handle that.

Give it a try, and let me know if it works for you.

Thank you!

skorotkiewicz commented 9 years ago

It works, thanks for a quick response