How to use chardet for detecting encoding of file size in GBs

前端 未结 0 1036
无人及你
无人及你 2020-12-04 17:49

I am using chardet library to detect the encoding of files. Code snippet is :

file = open(file_path, \'rb\')
detector = UniversalDetector()
for line in file:
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题