shift-jis-html.py (235B)
1 def main(request, response): 2 headers = [(b"Content-type", b"text/html;charset=shift-jis")] 3 # Shift-JIS bytes for katakana TE SU TO ('test') 4 content = bytes([0x83, 0x65, 0x83, 0x58, 0x83, 0x67]) 5 6 return headers, content