I'm new in programming and today I started learning the flask on python 3.7. When I started the following code:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello() -> str:
return 'Hello World!'
app.run()
caused an error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd1 in position 0: invalid continuation byte
How to fix it?