I have the following code in the view call..
def view(request): body = u\"\" for filename, f in request.FILES.items(): body = body + \'Filename
If you are not in control of the file encoding for files that can be uploaded , you can guess what encoding a file is in using the Universal Encoding Detector module chardet.
chardet