示例#1
0
def lab4(request):
    result_dict = result()

    date = result_dict['date']
    text = result_dict['text']
    time = result_dict['time']

    return render(request, 'lab4_test.html', {'result_dict': result_dict, 'text': text, 'time': time, 'date': date})
示例#2
0
def test_page(request):
    res = result()
    text = res['text']
    return render(request, 'test_page.html', {'text': text})
示例#3
0
__author__ = 'sashapekh'

from lab4.Print_file import result


dec = result()

list = dec['text']


str = b'\xd0\xba\xd0\xb0\xd0\xba\xd0\xbe\xd0\xb9 \xd1\x82\xd0\xbe \xd1\x82\xd0\xb5\xd0\xba\xd1\x81\xd1\x82\n'

str.decode('UTF-8')

print(type(str))

str.encode('UTF-8')
print(str)