When I entered Japanese in the body of the list in the official document Tutorial of Python's web application framework Bottle, the characters were garbled and it was solved, so make a note.
When I entered the text of the TODO item in Japanese, garbled characters occurred. Code of ** new_itme (): ** and ** edit_item (): ** in todo.py Correct and solve as follows!
Line 24 (after correction)
todo.py
new = request.query.task.strip()
Line 45 (after correction)
todo.py
edit = request.query.task.strip()
There were other problems, but I was able to solve them by referring to the following site.
――When I wrote and executed the sample code before the Japanese characters were garbled, it didn't work.
--The list can no longer be displayed when the TODO item has more than 2 digits.