Python Forum
chatterbot utf-8 errors with mysql database
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
chatterbot utf-8 errors with mysql database
#1
Hi everyone. In the process to create a chatbot using chatterbot.
The issue is when trying to load a sql database for the training process.
This is the error that occurs:

Error:
File "C:\Users\ryan\AppData\Local\Programs\Python\Python38-32\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xec in position 27: invalid continuation byte
This is the source code for the training script:

from chatterbot.trainers import ListTrainer
from talkbot import bot
from chatterbot import ChatBot
from settings import REDDIT
import logging
from chatterbot.trainers import ChatterBotCorpusTrainer


trainer = ChatterBotCorpusTrainer(bot)

trainer.train("C:/Users/ryan/Documents/Code/2015-01.db")
Reply


Messages In This Thread
chatterbot utf-8 errors with mysql database - by isolatedastronaut - Nov-08-2020, 06:54 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SaltStack: MySQL returner save less data into Database table columns xtc14 2 237 Jul-02-2021, 02:19 PM
Last Post: xtc14
  Problem updating value in MySQL database dangermaus33 1 366 Nov-24-2020, 08:32 PM
Last Post: dangermaus33
  ChatterBot: How to store unanswered question in a text file? animrehrm 0 716 May-16-2020, 06:00 AM
Last Post: animrehrm
  MYSQL how to assign a table for each user in my username table database? YoshikageKira 1 1,225 Dec-26-2019, 05:57 AM
Last Post: buran
  How to return value from a stored procedure of a MySQL database? UtiliseIT 0 968 Jul-22-2019, 10:14 AM
Last Post: UtiliseIT
  I can't uninstall chatterbot? Piethon 9 2,638 Jul-20-2019, 09:42 AM
Last Post: Piethon
  Trying to sort a MYSQL Database PierreSoulier 14 3,613 Jul-14-2018, 03:19 AM
Last Post: micseydel
  Need help saving data into MySQL database reezalaq 0 1,210 Jun-03-2018, 07:50 PM
Last Post: reezalaq
  Python 3 MySQL database insert error georgian2all 7 5,136 Aug-01-2017, 06:37 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020