In a recent climb js data encrypted site, there is some question, troubled me two
Js file directly when running normally, but time is running js code will always be an error with execjs
After finally turned a lot of blog, finally I found the reason: The reason is that there is a procedure when using TextIOWrapper class to create objects using the default gbk encoding, utf-8 can not read the characters,
so we can modify at subprocess.py default file coding mode is to utf-8
FIG originally encoding = None, modified encoding = 'utf-8'
Run successfully, perfect