fileinput.hook_encoded(encoding)
Returns a hook which opens each file with open()
, using the given encoding to read the file.
Usage example: fi =
fileinput.FileInput(openhook=fileinput.hook_encoded("iso-8859-1"))
fileinput.hook_encoded(encoding)
Returns a hook which opens each file with open()
, using the given encoding to read the file.
Usage example: fi =
fileinput.FileInput(openhook=fileinput.hook_encoded("iso-8859-1"))
Please login to continue.