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
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:

File "C:\Users\ryan\AppData\Local\Programs\Python\Python38-32\lib\", 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)


Possibly Related Threads…
Thread Author Replies Views Last Post
  mySQL Database error not resolving. cybertooth 2 198 Aug-30-2021, 05:45 PM
Last Post: ibreeden
  SaltStack: MySQL returner save less data into Database table columns xtc14 2 376 Jul-02-2021, 02:19 PM
Last Post: xtc14
  Problem updating value in MySQL database dangermaus33 1 459 Nov-24-2020, 08:32 PM
Last Post: dangermaus33
  ChatterBot: How to store unanswered question in a text file? animrehrm 0 810 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,348 Dec-26-2019, 05:57 AM
Last Post: buran
  How to return value from a stored procedure of a MySQL database? UtiliseIT 0 1,070 Jul-22-2019, 10:14 AM
Last Post: UtiliseIT
  I can't uninstall chatterbot? Piethon 9 2,926 Jul-20-2019, 09:42 AM
Last Post: Piethon
  Trying to sort a MYSQL Database PierreSoulier 14 3,821 Jul-14-2018, 03:19 AM
Last Post: micseydel
  Need help saving data into MySQL database reezalaq 0 1,279 Jun-03-2018, 07:50 PM
Last Post: reezalaq
  Python 3 MySQL database insert error georgian2all 7 5,381 Aug-01-2017, 06:37 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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