[Python] What to check when you get a Unicode Decode Error in Django

If Japanese is included in the Py file or template, an error like the title appeared and I was addicted to it for an hour, so make a note

■ Py file Does it contain the following code

# coding: UTF-8

■ Template -Is the file itself saved in utf-8?

Recommended Posts

[Python] What to check when you get a Unicode Decode Error in Django
If you encounter a "Unicode Decode Error" in Python
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get a minus zero in Python
What to do if you get a must override `get_config` error when trying to model.save in Keras
BigQuery-If you get a Reason: responseTooLarge error in Python
When you get an error in python scraping (requests)
What to do if you get a "No versions found" error in pipenv
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do if you get an error when installing python with pyenv
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
[Django] A memorandum when you want to communicate asynchronously [Python3]
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
How to get a stacktrace in python
What to do if you get the error RuntimeError: Python is not installed as a framework when trying to use matplitlib and pylab in Python 3.3
What to do if you get Swagger-codegen in python and Import Error: No module named
Check if you can connect to a TCP port in Python
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
If you get a no attribute error in boto3, check the version
When I get a chromedriver error in Selenium
What to do to get google spreadsheet in python
Error when trying to install psycopg2 in Python
What to do if you get `locale.Error: unsupported locale setting` when getting the day of the week from a date in Python
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
What to do if you get a Permission denied (public key) error when trying to pull on Github
[python] What to do when an error occurs in send_keys of headless chrome
What to do when a warning appears around Python integration in Neovim's CheckHealth
The first thing to check when a No Reverse Match occurs in Django
Things to note when initializing a list in Python
When you want to plt.save in a for statement
What to do when you can't bind CaboCha to Python
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do if you run python in IntelliJ and end with an error
What to do if you get a Call with too many input arguments error at DoAndReturn in a golang test
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
How to import a file anywhere you like in Python
Developed a library to get Kindle collection list in Python
Check in advance what happens when you execute the command
What to do if you get "coverage unknown" in Coveralls
I tried "How to get a method decorated in Python"
How to get the last (last) value in a list in Python
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python
How to get a list of built-in exceptions in python
Create a tool to check scraping rules (robots.txt) in Python
What to do when "Invalid HTTP_HOST header" appears in Django
When you want to hit a UNIX command on Python
What to do when you get an error saying "Name resolution temporarily failed" on linux
[Small story] A painstaking measure when you have to execute a function before import in Python
Check the argument type annotation when executing a function in Python and make an error
What to do if you get an Undefined error when trying to use pip with pyenv
When writing a program in Python
[Subprocess] When you want to execute another Python program in Python code
A note on what you did to use Flycheck with Python