[{"data":1,"prerenderedAt":296},["ShallowReactive",2],{"docs-doc-en-toolbox":3,"docs-list-en":196},{"doc":4,"locale":194,"available":195},{"id":5,"title":6,"body":7,"description":182,"extension":183,"group":184,"meta":185,"navigation":186,"order":187,"path":188,"section":189,"seo":190,"stem":191,"updated":192,"__hash__":193},"docs_zh\u002Fdocs\u002Ftoolbox.md","创作工具 · 编码转换",{"type":8,"value":9,"toc":174},"minimark",[10,19,22,26,29,90,126,129,160,163],[11,12,13,14,18],"p",{},"银河编辑器的脚本编辑器对非 ASCII 字符不友好，触发器的文本、提示信息里直接写中文常常变成乱码。创作工具里的",[15,16,17],"strong",{},"编码转换","把文本按 UTF-8 逐字节转义，得到可以直接粘进 Galaxy 代码的写法。",[11,20,21],{},"从侧栏进入「创作工具」，打开「编码转换」。",[23,24,25],"h2",{"id":25},"四种输出格式",[11,27,28],{},"以「测试」为例：",[30,31,32,45],"table",{},[33,34,35],"thead",{},[36,37,38,42],"tr",{},[39,40,41],"th",{},"输出格式",[39,43,44],{},"结果",[46,47,48,60,70,80],"tbody",{},[36,49,50,54],{},[51,52,53],"td",{},"直接转码",[51,55,56],{},[57,58,59],"code",{},"\\xe6\\xb5\\x8b\\xe8\\xaf\\x95",[36,61,62,65],{},[51,63,64],{},"作为字符（String）",[51,66,67],{},[57,68,69],{},"\"\\xe6\\xb5\\x8b\\xe8\\xaf\\x95\"",[36,71,72,75],{},[51,73,74],{},"作为文本（Text）",[51,76,77],{},[57,78,79],{},"StringToText(\"\\xe6\\xb5\\x8b\\xe8\\xaf\\x95\")",[36,81,82,85],{},[51,83,84],{},"触发调试（TriggerDebug）",[51,86,87],{},[57,88,89],{},"TriggerDebugOutput(1, StringToText(\"\\xe6\\xb5\\x8b\\xe8\\xaf\\x95\"), true);",[91,92,93,99,102,116],"ul",{},[94,95,96,98],"li",{},[15,97,53],{},"只输出转义序列，适合拼进已有的字符串或自定义函数调用。",[94,100,101],{},"**作为字符（String）**外面包一层双引号，是一个完整的 Galaxy 字符串字面量。",[94,103,104,105,108,109,112,113,115],{},"**作为文本（Text）**再包一层 ",[57,106,107],{},"StringToText()","，得到 ",[57,110,111],{},"text"," 类型，可直接用于对话框、任务目标等接受 ",[57,114,111],{}," 的接口。",[94,117,118,121,122,125],{},[15,119,120],{},"触发调试","是一条完整的 ",[57,123,124],{},"TriggerDebugOutput"," 调用，调试时把它粘进触发器就能在游戏内打出这段文字。",[23,127,128],{"id":128},"转义规则",[91,130,131,142,153],{},[94,132,133,134,137,138,141],{},"可打印 ASCII（",[57,135,136],{},"0x20","–",[57,139,140],{},"0x7E","）原样保留。",[94,143,144,145,148,149,152],{},"双引号转成 ",[57,146,147],{},"\\\"","，反斜杠转成 ",[57,150,151],{},"\\\\","，保证结果能直接放进字符串字面量。",[94,154,155,156,159],{},"其余字节一律写成 ",[57,157,158],{},"\\x"," 加两位小写十六进制。",[23,161,162],{"id":162},"使用注意",[91,164,165,168,171],{},[94,166,167],{},"转换全部在本地完成，输入内容不会上传，也不会被保存；关闭页面即丢弃。",[94,169,170],{},"结果可以一键复制，也可以一键清空重新输入。",[94,172,173],{},"转义结果依赖 UTF-8 编码，游戏内的字体与语言设置需要支持对应字符，否则仍会显示为方块。",{"title":175,"searchDepth":176,"depth":176,"links":177},"",3,[178,180,181],{"id":25,"depth":179,"text":25},2,{"id":128,"depth":179,"text":128},{"id":162,"depth":179,"text":162},"把中文等非 ASCII 文本转成 Galaxy 代码里可用的转义写法，可选直接转码、字符串、文本与触发调试四种输出。","md","usage",{},true,20,"\u002Fdocs\u002Ftoolbox","editor",{"title":6,"description":182},"docs\u002Ftoolbox","2026-10-31","PS24EUZtD-_AxOCbYU-zL1lW79YMgaYEpXR7vIUEEek","zh-CN",[194],[197,203,209,214,219,223,227,231,235,236,241,245,250,255,260,265,270,275,280,285,291],{"path":198,"title":199,"description":200,"order":201,"group":202,"section":189,"contentLocale":194},"\u002Fdocs\u002Feditor","创作流程概览","从在《星际争霸II》编辑器中制作，到打包、分发与更新，说明星际枢纽在创作流程里承担的环节。",1,"start",{"path":204,"title":205,"description":206,"order":201,"group":202,"section":207,"contentLocale":208},"\u002Fdocs\u002Foverview","Getting started","SCNexus is a hub app built for the StarCraft community","app","en",{"path":210,"title":211,"description":212,"order":201,"group":213,"section":213,"contentLocale":208},"\u002Fdocs\u002Freference","Overview","The packaging and source conventions that importing, installing and distributing content depends on.","reference",{"path":215,"title":216,"description":217,"order":218,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fcampaign","Campaign management","Import your own campaigns into the library, activate them in the game, and restore the official campaigns at any time",10,{"path":220,"title":221,"description":222,"order":218,"group":184,"section":189,"contentLocale":194},"\u002Fdocs\u002Fpackaging","打包安装包","把编辑器产出的地图、模组与 package.json 组织成一个能被星际枢纽自动识别并安装的压缩包。",{"path":224,"title":225,"description":226,"order":218,"group":213,"section":213,"contentLocale":208},"\u002Fdocs\u002Fscnexus-package","SCNexus package standard","Directory layout, package.json manifest fields, map and mod resource declarations, and how launchers and bundled documents are written for SCNexus work packages.",{"path":228,"title":229,"description":230,"order":187,"group":213,"section":213,"contentLocale":208},"\u002Fdocs\u002Fccm-package","CCM package standard","How CCM describes a campaign in metadata.txt, the key-value format, the directory layout and install targets, and how SCNexus reads these packages.",{"path":232,"title":233,"description":234,"order":187,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fcustomize","Custom content","Install maps and mods straight into the game, then pick a launcher map and start in one click",{"path":188,"title":6,"description":182,"order":187,"group":184,"section":189,"contentLocale":194},{"path":237,"title":238,"description":239,"order":240,"group":213,"section":213,"contentLocale":208},"\u002Fdocs\u002Fgithub-source","GitHub source standard","The manifest and structural requirements a public GitHub repository has to meet to serve as an install source, and how addresses and branches are written.",30,{"path":242,"title":243,"description":244,"order":240,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fweekly-mutations","Weekly mutations","This week's mutation map, mutators and community rating, plus the full mutator reference",{"path":246,"title":247,"description":248,"order":249,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Freplays","Replays","Index replays by StarCraft profile and replay type, with duplicate detection, bulk export and match data",40,{"path":251,"title":252,"description":253,"order":254,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fworkshop","Workshop","Browse community works, open their details and download reviewed releases",50,{"path":256,"title":257,"description":258,"order":259,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fcreator","Creator center and uploads","Create works, maintain their details, upload new versions and track upload tasks",60,{"path":261,"title":262,"description":263,"order":264,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fdownloads","Downloads","Fetch content from GitHub or the Workshop, then install it once you have checked it",70,{"path":266,"title":267,"description":268,"order":269,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Ftools","Creation tools","Local helpers such as the encoding converter; input is never uploaded or stored",80,{"path":271,"title":272,"description":273,"order":274,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fai-assistant","Smart Assistant","A controlled MCP service connecting local data to AI clients on the same machine",90,{"path":276,"title":277,"description":278,"order":279,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Faccount","Account and personal center","Signing in, your profile and level progression, and setting up and maintaining two-step verification",100,{"path":281,"title":282,"description":283,"order":284,"group":184,"section":207,"contentLocale":208},"\u002Fdocs\u002Fsettings","Settings","Language, game directories, feature switches and logging privacy, tab by tab",110,{"path":286,"title":287,"description":288,"order":289,"group":290,"section":207,"contentLocale":208},"\u002Fdocs\u002Fcontributing","Contributing","How to contribute to SCNexus: where the repositories live, how to set up a development environment, what to run before submitting, the code and documentation conventions, the code of conduct, and how to report security issues.",200,"contribute",{"path":292,"title":293,"description":294,"order":295,"group":290,"section":207,"contentLocale":208},"\u002Fdocs\u002Flocalization","Translating the interface","Where the interface translation files live, how keys are named, how to submit changes, how to verify them locally, and what adding a language touches.",210,1793550744913]