Answer the question
In order to leave comments, you need to log in
What to do if, when developing a bot, he writes something about Non-UTF-8?
I am writing a bot on discord.py, python 3.8.2, here is the code:
import discord
from discord.ext import commands
from config import settings
bot = commands.Bot(command_prefix = settings['prefix'])
@bot.command()
async def hi(ctx):
author = ctx.message.author
await ctx.send(f'Привет, {author.mention}!')
bot.run(settings['token'])
Answer the question
In order to leave comments, you need to log in
Most likely, the launch is not done through python 3.8.2, but through python 2.3
SyntaxError: Non-UTF-8 code starting with '\xf2' in file C:\Users\Gleb\Desktop\bot\main.py on line 10, but no encoding declared;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question