mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 21:24:16 +08:00
统一升级 4 处版本号至 0.1.88: - VERSION / backend/app/__init__.py / frontend/package.json: 0.1.87 → 0.1.88 - backend/pyproject.toml: 0.1.83 → 0.1.88 (原已滞后 4 个版本, 一并追上) 本版本包含: - feat(search): 拼音首字母搜索 + 创业/科创/北交所徽标 (#151) - fix(security): ext_columns DuckDB SQL 注入修复 (#152, closes #150)
16 lines
540 B
Python
16 lines
540 B
Python
"""TickFlow Stock Panel backend."""
|
|
|
|
import sys
|
|
|
|
__version__ = "0.1.88"
|
|
|
|
# Windows 默认 stdout/stderr 编码为 GBK(cp936),TickFlow SDK 内部输出含 emoji 的
|
|
# 指数/标的名称(如 \U0001f193)时会抛 UnicodeEncodeError,导致请求失败。
|
|
# 进程加载最早阶段强制 UTF-8,根治此类编码崩溃。
|
|
for _stream in (sys.stdout, sys.stderr):
|
|
if hasattr(_stream, "reconfigure"):
|
|
try:
|
|
_stream.reconfigure(encoding="utf-8", errors="replace")
|
|
except Exception: # noqa: BLE001
|
|
pass
|