data = execjs.compile(open('15_exercise.js', 'r', encoding='utf-8').read()).call('decryptData', encrypted_data)
解决方法一:
在 import execjs 之前加入代码
import subprocess
from functools import partial
subprocess.Popen = partial(subprocess.Popen, encoding='utf-8')
解决方法二:
将 subprocess.py 文件的 encoding=None 改为 utf-8
博客来源:
https://www.cnblogs.com/yusilu-2653144/p/16626661.html