If the Python script does not display lines containing Cyrillic characters, make changes to it and format the output by analogy with the examples below.
#!/usr/bin/env python # -*- coding: UTF-8 -*- # enable debugging import cgitb cgitb.enable() print "Content-Type: text/html;charset=utf-8" print print "Hello World!"
#!/usr/bin/python3 # -*- coding: UTF-8 -*- # enable debugging import cgitb cgitb.enable() import sys import codecs sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach()) print("Content-Type: text/html; charset=utf-8") print() print('Hello World!')