optimize: add -X utf8 to python subprocess in ga.py to fix unicode output issues

This commit is contained in:
Liang Jiaqing
2026-01-29 18:41:46 +08:00
parent ef00aaf641
commit 7810f38f44
4 changed files with 12 additions and 10 deletions

View File

@@ -816,8 +816,9 @@ def get_main_block(driver):
if type(html) is not str:
time.sleep(2)
html = driver.execute_js(js_optHTML)
else:
print('[STRANGE TYPE]', str(html)[:500])
if type(html) is not str:
print('[STRANGE TYPE]', type(html), str(html)[:500])
return html
return html