chore: 导入旧记忆备份供恢复

This commit is contained in:
2026-09-23 22:38:40 +08:00
parent 5313fcee7a
commit 6a6a895eaf
638 changed files with 29816 additions and 1 deletions
@@ -0,0 +1,21 @@
---
title: start-ui.ps1 必须使用 UTF-8 BOM
type: experience
permalink: main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/start-ui.ps1-必须使用-utf-8-bom
stable_id: 8c8dfa80-4c11-4951-b3c6-8cb2fe907eaf
scope: project
memory_type: experience
project_id: 8e229c96-a83b-4a02-ac40-10a0a9da444e
usage_profile_id: 7aee455b-24cc-4008-bdaf-443721e6f939
status: active
revision: 1
request_id: marketgrid-experience-ps1-utf8-bom-20260916
created_at: '2026-09-16T08:39:13.938099+00:00'
updated_at: '2026-09-16T08:39:13.938099+00:00'
tags:
- powershell
- encoding
- streamlit
---
Windows 默认 powershell.exe 是 5.1,读取无 BOM 的 UTF-8 .ps1 会按系统 ANSI(中文环境常为 GBK)解码,throw 中的中文引号和括号会被拆坏,表现为 UnexpectedToken。start-ui.ps1 必须保存为 UTF-8 with BOM。验证:powershell.exe Parser.ParseFile 通过。