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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mysql and mysql.connector error lostintime 2 611 Oct-03-2023, 10:25 PM
Last Post: lostintime
  Mysql error message: Lost connection to MySQL server during query tomtom 6 15,675 Feb-09-2022, 09:55 AM
Last Post: ibreeden
  mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python ilknurg 3 5,465 Jan-18-2022, 06:25 PM
Last Post: ilknurg
  mySQL Database error not resolving. cybertooth 2 3,114 Aug-30-2021, 05:45 PM
Last Post: ibreeden
  SaltStack: MySQL returner save less data into Database table columns xtc14 2 2,113 Jul-02-2021, 02:19 PM
Last Post: xtc14
  Problem updating value in MySQL database dangermaus33 1 1,589 Nov-24-2020, 08:32 PM
Last Post: dangermaus33
  ChatterBot: How to store unanswered question in a text file? animrehrm 0 1,877 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 2,763 Dec-26-2019, 05:57 AM
Last Post: buran
  How to return value from a stored procedure of a MySQL database? UtiliseIT 0 2,300 Jul-22-2019, 10:14 AM
Last Post: UtiliseIT
  I can't uninstall chatterbot? Piethon 9 6,643 Jul-20-2019, 09:42 AM
Last Post: Piethon

Forum Jump:

User Panel Messages

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