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

872 B

title, type, permalink, stable_id, scope, memory_type, project_id, usage_profile_id, status, revision, request_id, created_at, updated_at, tags
title type permalink stable_id scope memory_type project_id usage_profile_id status revision request_id 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 experience 8e229c96-a83b-4a02-ac40-10a0a9da444e 7aee455b-24cc-4008-bdaf-443721e6f939 active 1 marketgrid-experience-ps1-utf8-bom-20260916 2026-09-16T08:39:13.938099+00:00 2026-09-16T08:39:13.938099+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 通过。