C Python API Extensions is ignoring open(errors=“ignore”) and keeps throwing the encoding exception anyways
Given a file /myfiles/file_with_invalid_encoding.txt with invalid UTF8 as: parse this correctly Føö»BÃ¥r also parse this correctly I am using the builtin Python open function from the C API as follows the minimal example (excluding C Python setup boilerplate): const char* filepath = "/myfiles/file_with_invalid_encoding.txt"; PyObject* iomodule = PyImport_ImportModule( "builtins" ); if( iomodule == NULL ) { PyErr_PrintEx(100); return; } PyObject* openfunction = PyObject_GetAttrString( iomodule, "open" ); if( openfunction == NULL ) { PyErr_PrintEx(100); return; } PyObject* openfile = PyObject