Files
MemRelay/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/start-ui.ps1 必须使用 UTF-8 BOM.md
T

824 B

title, type, permalink, stable_id, scope, project_id, memory_type, status, revision, restored_from_commit, created_at, updated_at, tags
title type permalink stable_id scope project_id memory_type status revision restored_from_commit created_at updated_at tags
start-ui.ps1 必须使用 UTF-8 BOM experience main/projects/8e229c96-a83b-4a02-ac40-10a0a9da444e/start-ui.ps1-必须使用-utf-8-bom 8c8dfa80-4c11-4951-b3c6-8cb2fe907eaf project 8e229c96-a83b-4a02-ac40-10a0a9da444e experience active 1 6a6a895eaf 2026-09-23T15:01:45.459843+00:00 2026-09-23T15:01:45.459899+00:00
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 通过。