From 85b346f8497fc1718507c9698792d3e7445410f7 Mon Sep 17 00:00:00 2001 From: Mallikarjunarao Kosuri Date: Sun, 30 Jul 2017 16:45:36 +0530 Subject: [PATCH] convert_unicode on the String type --- chatterbot/storage/sql_storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatterbot/storage/sql_storage.py b/chatterbot/storage/sql_storage.py index d3970cc87..eb4832400 100644 --- a/chatterbot/storage/sql_storage.py +++ b/chatterbot/storage/sql_storage.py @@ -116,7 +116,7 @@ def __init__(self, **kwargs): if database_name: self.database_uri = "sqlite:///" + database_name + ".db" - self.engine = create_engine(self.database_uri) + self.engine = create_engine(self.database_uri, convert_unicode=True) self.read_only = self.kwargs.get( "read_only", False