import csv as csv_mod
import codecs
file = request.FILES['file']
dialect = csv_mod.Sniffer().sniff(codecs.EncodedFile(file, 'utf-8').read(1024))
file.open()
Proccessing a Django UploadedFile as UTF-8 with universal newlines