This is possible since Python 3.3:
import gzip
gzip.open('file.gz', 'rt', encoding='utf-8')
Notice that gzip.open() requires you to explicitly specify text mode (‘t’).
This is possible since Python 3.3:
import gzip
gzip.open('file.gz', 'rt', encoding='utf-8')
Notice that gzip.open() requires you to explicitly specify text mode (‘t’).