How to get the encoding of the uploaded file

Hello Great people,

Consider i am using the file_uploader widget to get file uploaded.

How do i get the encoding of the uploaded file ?

You don’t. Libraries like chardet can make an educated guess and ensure that the file can be decoded without errors, but you can`t tell for sure how a file was encoded just by looking at the bytes.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.