I used the open function to print out the file handle of a notepad file. The problem is the encoding of the notepad file is 'UTF-8'. But the file handle shows 'cp1252'. Why is there a difference?



I used the open function to print out the file handle of a notepad file. The problem is the encoding of the notepad file is 'UTF-8'. But the file handle shows 'cp1252'. Why is there a difference?


