SIGN IN SIGN UP
666ghj / BettaFish UNCLAIMED

微舆:人人可用的多Agent舆情分析助手,打破信息茧房,还原舆情原貌,预测未来走向,辅助决策!从0实现,不依赖任何框架。

0 0 83 Python

fix: specify utf-8 encoding in subprocess.run() to prevent UnicodeDecodeError on Windows (fixes #641)

On Windows, subprocess.run() with text=True defaults to the system locale
encoding (e.g. GBK), which cannot decode UTF-8 subprocess output and raises
UnicodeDecodeError during database initialization.

Explicitly set encoding='utf-8' in both subprocess.run() calls that use
text=True in MindSpider/main.py:
- initialize_database(): runs init_database.py and captures its output
- _install_mediacrawler_dependencies(): runs pip/uv install commands
O
octo-patch committed
11f62a774b865bb86f0792ad7d3c0fd3c2b00b09
Parent: 614b485