Esempio n. 1
0
def test_minnal(request, word):
    data, _ = tamil_minnal(re.split('\s+|,', word))
    json_string = json.dumps(data, ensure_ascii=False)
    #creating a Response object to set the content type and the encoding
    response = HttpResponse(json_string,
                            content_type="application/json; charset=utf-8")
    return response
def test_minnal(request,word):
    data,_ = tamil_minnal(re.split('\s+|,',word))
    json_string = json.dumps(data,ensure_ascii = False)
    #creating a Response object to set the content type and the encoding
    response = HttpResponse(json_string,content_type="application/json; charset=utf-8" )
    return response