I'm making a site on Django. The functionality is as follows - users can download pdf files for processing (converting to different formats, extracting text, etc.).
This is how I receive a file from a user and process it -
def post(self, request, *args, **kwargs):
text = services.extract_text_from_pdf(request.FILES.get('file'))
I had the following question - what if users will download files in different encodings? Does their encoding matter or do they all end up being utf-8?
I read this from the Django documentation. But I didn't quite understand how to configure file encoding.