Use nodejs to write a crawler. How to determine the encoding format of the content crawled back? How to determine the encoding format of gbk, unicode, utf8?
认证0级讲师
The response object contains charset to determine the encoding
The response object contains charset to determine the encoding