Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

fix(viewer): declare UTF-8 encoding in exported SVG documents (#417)

Xiaoyu Lu62a2f4a3fe76
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c27f5ebb..f49b388f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,7 @@ All notable changes are documented here. Format loosely follows [Keep a Changelo
### Fixed
- **Compare rollback recovery (#438).** If restoring a previous output fails, compare preserves its recovery directory and reports backup-to-target paths instead of deleting the remaining backups during cleanup.
- **固定提交的来源校验 (#420)。** 校验忽略本地 Git replacement refs,始终读取指定提交的原始对象,避免替换后的文件或行范围造成误接受或误拒绝;保留原有来源链接、诊断与用户 Git 配置。
+- **导出的独立 SVG 声明 UTF-8 编码。** 架构图「下载 SVG」和架构对比(compare)导出的 SVG 文档现在以 `<?xml version="1.0" encoding="UTF-8"?>` 声明开头;缺少声明时,部分消费方不按 XML 规范默认 UTF-8 而猜测编码,导致中文等非 ASCII 文本乱码。
- **Compare 输入快照一致性 (#400)。** 原始输入校验使用首次读取的字节快照,使其与回执哈希和差异计算保持一致;读取后原文件发生变化不会影响本次比较,非法原始字段仍会被拒绝。
- **DSH plugin refresh.** Adapter 0.2.0 pins the current Archify development snapshot, includes the newer runtime and CLI fixes, and targets DSH 0.1.2-rc.1. Release metadata replaces the frozen 0.1.0 packaging source; the tarball uses the canonical clean-Skill stager and documents independent plugin upgrades.
- **Machine-readable CLI argument failures (#330).** `validate --json` and `deliver --json` now keep invalid or missing option values, unknown options and diagram types, unsupported option combinations, and usage errors inside one versioned failure receipt on stdout. These failures use the `arguments` stage, stable diagnostic codes, and exit status 2, while human-mode stderr behavior remains unchanged.
diff --git a/archify.zip b/archify.zip
index 516a0742..67e13d6a 100644
Binary files a/archify.zip and b/archify.zip differ
diff --git a/archify/assets/template.html b/archify/assets/template.html
index 5f5fc862..a762d9d3 100644
--- a/archify/assets/template.html
+++ b/archify/assets/template.html
@@ -6305,8 +6305,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/delta/architecture-delta.mjs b/archify/delta/architecture-delta.mjs
index 5bd54a70..ccb02798 100644
--- a/archify/delta/architecture-delta.mjs
+++ b/archify/delta/architecture-delta.mjs
@@ -959,7 +959,9 @@ html[data-theme="dark"] body{background:#071019!important;background-image:none!
'text[data-delta-boundary-state="added"]{fill:#34d399!important}text[data-delta-boundary-state="removed"]{fill:#fb7185!important}text[data-delta-boundary-state="changed"]{fill:#fbbf24!important}text[data-delta-boundary-state="moved-from"]{fill:#7dd3fc!important;opacity:.55}' +
'.delta-node-marker circle{fill:#071019;stroke:currentColor;stroke-width:1.5}.delta-node-marker text,.delta-edge-marker,.delta-boundary-marker{fill:currentColor;font:800 9px ui-monospace,SFMono-Regular,Menlo,monospace}';
clone.insertBefore(style, clone.firstChild);
- return new XMLSerializer().serializeToString(clone);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
+ return '<?xml version="1.0" encoding="UTF-8"?>\\n' + new XMLSerializer().serializeToString(clone);
}
function artifactName(suffix) {
diff --git a/archify/examples/dataflow-product-analytics.html b/archify/examples/dataflow-product-analytics.html
index 184ed9b3..5eacdc4a 100644
--- a/archify/examples/dataflow-product-analytics.html
+++ b/archify/examples/dataflow-product-analytics.html
@@ -6416,8 +6416,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/examples/lifecycle-agent-run.html b/archify/examples/lifecycle-agent-run.html
index 2f871a7b..37c84d2f 100644
--- a/archify/examples/lifecycle-agent-run.html
+++ b/archify/examples/lifecycle-agent-run.html
@@ -6351,8 +6351,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/examples/sequence-cache-miss-request.html b/archify/examples/sequence-cache-miss-request.html
index 4f3a27ff..9fa75af2 100644
--- a/archify/examples/sequence-cache-miss-request.html
+++ b/archify/examples/sequence-cache-miss-request.html
@@ -6431,8 +6431,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/examples/web-app-rendered.html b/archify/examples/web-app-rendered.html
index 1757a026..0493a684 100644
--- a/archify/examples/web-app-rendered.html
+++ b/archify/examples/web-app-rendered.html
@@ -6380,8 +6380,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/examples/workflow-agent-tool-call-rendered.html b/archify/examples/workflow-agent-tool-call-rendered.html
index e99419d6..21306161 100644
--- a/archify/examples/workflow-agent-tool-call-rendered.html
+++ b/archify/examples/workflow-agent-tool-call-rendered.html
@@ -6422,8 +6422,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/archify/test/architecture-delta.test.mjs b/archify/test/architecture-delta.test.mjs
index cf7cf255..66709217 100644
--- a/archify/test/architecture-delta.test.mjs
+++ b/archify/test/architecture-delta.test.mjs
@@ -431,6 +431,17 @@ test('checked-in Checkout compare artifact is reproducible from its authoritativ
assert.deepEqual(read(receipt), read(checkedReceipt));
});
+test('compare artifact exports standalone SVG with a UTF-8 XML declaration', () => {
+ const output = path.join(tmp, 'utf8-export.html');
+ const result = run(['compare', 'architecture', baseFixture, headFixture, output, '--json']);
+ assert.equal(result.status, 0, result.stderr);
+ const html = fs.readFileSync(output, 'utf8');
+ assert.ok(
+ html.includes(`'<?xml version="1.0" encoding="UTF-8"?>\\n' + new XMLSerializer().serializeToString(clone)`),
+ 'the exported standalone SVG must declare its UTF-8 encoding',
+ );
+});
+
test('artifact validation fails closed on missing, duplicate, or self-blessed review identity', () => {
const output = path.join(tmp, 'review-identity.html');
const result = run(['compare', 'architecture', baseFixture, headFixture, output, '--json']);
diff --git a/archify/test/export-browser.test.mjs b/archify/test/export-browser.test.mjs
index fe400055..70d758f0 100644
--- a/archify/test/export-browser.test.mjs
+++ b/archify/test/export-browser.test.mjs
@@ -241,6 +241,28 @@ test('Export preserves menu, clipboard, semantic cards and recording lifecycles'
assert.equal(sync,true);assert.deepEqual((await record('svg-sync-throw')).receipt,{});
});
+ await t.test('SVG download declares UTF-8 and preserves CJK text', async () => {
+ const originalInput = fs.readFileSync(input, 'utf8');
+ try {
+ const cjkSource = JSON.parse(originalInput);
+ cjkSource.components[0].label = '用户入口';
+ fs.writeFileSync(input, JSON.stringify(cjkSource));
+ execFileSync(process.execPath, [path.join(skillRoot, 'renderers/architecture/render-architecture.mjs'), input, file]);
+ await load();
+ await run(`Archify.exportMenu.run('svg')`);
+ await run('exportWait(()=>exportDownloads.length===1)');
+ const download = await run(`exportDownloads[0].blob.text().then(text=>({name:exportDownloads[0].name,type:exportDownloads[0].blob.type,text}))`);
+ assert.ok(download.name.endsWith('.svg'));
+ assert.equal(download.type, 'image/svg+xml;charset=utf-8');
+ assert.ok(download.text.startsWith('<?xml version="1.0" encoding="UTF-8"?>'), 'standalone SVG must declare its UTF-8 encoding');
+ assert.ok(download.text.includes('用户入口'), 'CJK label must survive serialization');
+ await record('svg-utf8');
+ } finally {
+ fs.writeFileSync(input, originalInput);
+ execFileSync(process.execPath, [path.join(skillRoot, 'renderers/architecture/render-architecture.mjs'), input, file]);
+ }
+ });
+
await t.test('recording succeeds with real encoding and releases tracks and the background URL', async () => {
await load();assert.equal(await run('Archify.motion.canRecord()'),true);
const result = await run(`(async()=>{const blob=await Archify.motion.recordWebm({duration:500,fps:10});window.recordedBlob=blob;const url=URL.createObjectURL(blob),video=document.createElement('video');video.muted=true;video.src=url;await new Promise((resolve,reject)=>{video.onloadeddata=resolve;video.onerror=()=>reject(new Error('WebM decode failed'));});const dimensions=[video.videoWidth,video.videoHeight];await video.play();await new Promise(resolve=>video.requestVideoFrameCallback(resolve));video.pause();video.removeAttribute('src');video.load();URL.revokeObjectURL(url);return {type:blob.type,nonempty:blob.size>0,dimensions,cancelled:exportCancelled.length>0};})()`);
diff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.json
index b08d2fe8..70f447fa 100644
--- a/docs/assets/archify-live-proof.json
+++ b/docs/assets/archify-live-proof.json
@@ -13,7 +13,7 @@
{
"id": "signal-flow",
"artifact": "docs/gallery/artifacts/agent-tool-call.workflow.html",
- "artifactSha256": "28c652d28fa8c2d438bdd79ef3d5a2401b1439c338d063ee65d76e3758e415bf",
+ "artifactSha256": "c040b6bce3c9cab51146dfa44120204705ed68dbada05685de3e6ff40ecffdcc",
"view": "happy-path",
"eyebrow": "WORKFLOW · SIGNAL FLOW",
"title": "Agent Tool Call",
@@ -22,7 +22,7 @@
{
"id": "blueprint",
"artifact": "docs/gallery/artifacts/production-deployment.architecture.html",
- "artifactSha256": "52c0c6b565e0edc8bd057a9fef2114f72810810a1afe686982436cbf186736d7",
+ "artifactSha256": "3ddcf14ba2475722d316c07f4dec49006e3ccd911187888dd8898fc54547ad7f",
"view": "request-boundary",
"eyebrow": "ARCHITECTURE · BLUEPRINT",
"title": "Production Deployment",
@@ -31,7 +31,7 @@
{
"id": "classic",
"artifact": "docs/gallery/artifacts/cache-miss.sequence.html",
- "artifactSha256": "6598308f5dcc69bd0d5d9abb44216c3ad9064b7e40744c42832def1380ab11de",
+ "artifactSha256": "0570c137a36a8505cecd894fbd74ff8a49c5ab06746c25158467d9a782e35a64",
"view": "cache-fallback",
"eyebrow": "SEQUENCE · CLASSIC",
"title": "Cache Miss Request",
diff --git a/docs/gallery.html b/docs/gallery.html
index 6bfe65fb..336d6620 100644
--- a/docs/gallery.html
+++ b/docs/gallery.html
@@ -298,7 +298,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 11E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="28c652d28fa8c2d438bdd79ef3d5a2401b1439c338d063ee65d76e3758e415bf">28c652d28fa8</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c040b6bce3c9cab51146dfa44120204705ed68dbada05685de3e6ff40ecffdcc">c040b6bce3c9</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-tool-call.workflow.html?present=1&amp;play=1#view=happy-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -328,7 +328,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="52c0c6b565e0edc8bd057a9fef2114f72810810a1afe686982436cbf186736d7">52c0c6b565e0</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="3ddcf14ba2475722d316c07f4dec49006e3ccd911187888dd8898fc54547ad7f">3ddcf14ba247</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/production-deployment.architecture.html?present=1&amp;play=1#view=request-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -357,7 +357,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="6598308f5dcc69bd0d5d9abb44216c3ad9064b7e40744c42832def1380ab11de">6598308f5dcc</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0570c137a36a8505cecd894fbd74ff8a49c5ab06746c25158467d9a782e35a64">0570c137a36a</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/cache-miss.sequence.html?present=1&amp;play=1#view=cache-fallback" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -386,7 +386,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="c7ef451efe4e512a8bdbbe06c9d6b09b16adb5a332c7cc197ad8bc8a185d43a4">c7ef451efe4e</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="a0af2ccafa809ff0eb21ad5a9c652b2edab61f0a7d068b5bf756464d506eb1d4">a0af2ccafa80</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/release-delivery.workflow.html?present=1&amp;play=1#view=approval-to-production" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -415,7 +415,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ceab0e53c73adaa3782477eefe03f1aaf6049939e252ede2bcc69e2cc7a8b75c">ceab0e53c73a</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="d688a532de33aa5b32be24e3ad06cb18768c92e6db3f8fbd00a8dc32db2b590d">d688a532de33</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/incident-response.workflow.html?present=1&amp;play=1#view=mitigate-and-verify" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -444,7 +444,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 10E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="42abe9054ade34db4584c35bb0c3a21082d4a5f0e35d1cdabe49fa1625eecb62">42abe9054ade</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="8e09936581b5240aab423aa698545e85103cf1a3d47cc6a5d0a0582c127625ba">8e09936581b5</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/product-analytics.dataflow.html?present=1&amp;play=1#view=consent-boundary" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -473,7 +473,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">7N · 14E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="917154188a350ef03c325769de6458726a2069e5d20be40e66ff79c091e39828">917154188a35</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="ea86c3009152eefa0d6a54792d6b66858664867aa78f3db12cb11488013cd1da">ea86c3009152</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/async-job-roundtrip.sequence.html?present=1&amp;play=1#view=work-and-retry" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -502,7 +502,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">12N · 12E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="b2e98edbae82b63fe334726428ce1d224e25e61f3e7bf669c4094fa6cd7742a3">b2e98edbae82</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="9fc3e47d910f25f3403058d8200faa252e161afd43ba7a56a6ba60eaf0f96692">9fc3e47d910f</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/event-stream.dataflow.html?present=1&amp;play=1#view=order-transit" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -531,7 +531,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="07ec5b9308f55df528b6ff3823875e6d01a6e7860f9d35392b58c552eb335180">07ec5b9308f5</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="de9b9fe608b5ece07d6d516665fe1cc844f09a76354ee46c8f1c80837624e457">de9b9fe608b5</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/agent-run.lifecycle.html?present=1&amp;play=1#view=main-lifecycle" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -560,7 +560,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">11N · 6E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="1a5633fe1e8eefe3f3e854e547f9e22b6ecd1978b25b92c567e99959f1a15cff">1a5633fe1e8e</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="0b3012b48540846ef9def49e940a581842db63c7ecdf2af45d0ad85b1a4bb57c">0b3012b48540</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/deployment-release.lifecycle.html?present=1&amp;play=1#view=rollback-outcomes" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -589,7 +589,7 @@
<div class="receipt-cell"><span class="receipt-label">Artifact</span><span class="receipt-value ok">9/9 pass</span></div>
<div class="receipt-cell"><span class="receipt-label">Composition</span><span class="receipt-value ok" title="0 crossings · 0 border runs · 0 micro segments · 0 cramped turns">SHOWCASE · PASS</span></div>
<div class="receipt-cell"><span class="receipt-label">Graph</span><span class="receipt-value">10N · 9E</span></div>
- <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="28d8e3d85a6727e04906825e06c73d8b38844b46308ada213846d2c7ac37355d">28d8e3d85a67</span></div>
+ <div class="receipt-cell"><span class="receipt-label">SHA-256</span><span class="receipt-value" title="426db7bd1842de45916b00233b859dbb6cfb17a0d2fa9c70353c8fe121811d93">426db7bd1842</span></div>
</div>
<div class="card-actions">
<a class="card-link primary" href="gallery/artifacts/web-app.architecture.html?present=1&amp;play=1#view=request-path" target="_blank" rel="noopener" data-en="Play named chapter ↗" data-zh="播放命名章节 ↗">Play named chapter ↗</a>
@@ -675,8 +675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 819421,
- "artifactSha256": "28c652d28fa8c2d438bdd79ef3d5a2401b1439c338d063ee65d76e3758e415bf",
+ "artifactBytes": 819631,
+ "artifactSha256": "c040b6bce3c9cab51146dfa44120204705ed68dbada05685de3e6ff40ecffdcc",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -775,8 +775,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 821255,
- "artifactSha256": "52c0c6b565e0edc8bd057a9fef2114f72810810a1afe686982436cbf186736d7",
+ "artifactBytes": 821465,
+ "artifactSha256": "3ddcf14ba2475722d316c07f4dec49006e3ccd911187888dd8898fc54547ad7f",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -875,8 +875,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 814544,
- "artifactSha256": "6598308f5dcc69bd0d5d9abb44216c3ad9064b7e40744c42832def1380ab11de",
+ "artifactBytes": 814754,
+ "artifactSha256": "0570c137a36a8505cecd894fbd74ff8a49c5ab06746c25158467d9a782e35a64",
"sourceBytes": 4374,
"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7",
"checks": [
@@ -975,8 +975,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 815621,
- "artifactSha256": "c7ef451efe4e512a8bdbbe06c9d6b09b16adb5a332c7cc197ad8bc8a185d43a4",
+ "artifactBytes": 815831,
+ "artifactSha256": "a0af2ccafa809ff0eb21ad5a9c652b2edab61f0a7d068b5bf756464d506eb1d4",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -1075,8 +1075,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 812950,
- "artifactSha256": "ceab0e53c73adaa3782477eefe03f1aaf6049939e252ede2bcc69e2cc7a8b75c",
+ "artifactBytes": 813160,
+ "artifactSha256": "d688a532de33aa5b32be24e3ad06cb18768c92e6db3f8fbd00a8dc32db2b590d",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -1175,8 +1175,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 816861,
- "artifactSha256": "42abe9054ade34db4584c35bb0c3a21082d4a5f0e35d1cdabe49fa1625eecb62",
+ "artifactBytes": 817071,
+ "artifactSha256": "8e09936581b5240aab423aa698545e85103cf1a3d47cc6a5d0a0582c127625ba",
"sourceBytes": 5618,
"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f",
"checks": [
@@ -1275,8 +1275,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 813635,
- "artifactSha256": "917154188a350ef03c325769de6458726a2069e5d20be40e66ff79c091e39828",
+ "artifactBytes": 813845,
+ "artifactSha256": "ea86c3009152eefa0d6a54792d6b66858664867aa78f3db12cb11488013cd1da",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -1375,8 +1375,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 820842,
- "artifactSha256": "b2e98edbae82b63fe334726428ce1d224e25e61f3e7bf669c4094fa6cd7742a3",
+ "artifactBytes": 821052,
+ "artifactSha256": "9fc3e47d910f25f3403058d8200faa252e161afd43ba7a56a6ba60eaf0f96692",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -1475,8 +1475,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 809964,
- "artifactSha256": "07ec5b9308f55df528b6ff3823875e6d01a6e7860f9d35392b58c552eb335180",
+ "artifactBytes": 810174,
+ "artifactSha256": "de9b9fe608b5ece07d6d516665fe1cc844f09a76354ee46c8f1c80837624e457",
"sourceBytes": 4044,
"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7",
"checks": [
@@ -1575,8 +1575,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 811506,
- "artifactSha256": "1a5633fe1e8eefe3f3e854e547f9e22b6ecd1978b25b92c567e99959f1a15cff",
+ "artifactBytes": 811716,
+ "artifactSha256": "0b3012b48540846ef9def49e940a581842db63c7ecdf2af45d0ad85b1a4bb57c",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1675,8 +1675,8 @@ receipt 99 checks / 11 artifacts / deterministic hashes</pre>
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 811599,
- "artifactSha256": "28d8e3d85a6727e04906825e06c73d8b38844b46308ada213846d2c7ac37355d",
+ "artifactBytes": 811809,
+ "artifactSha256": "426db7bd1842de45916b00233b859dbb6cfb17a0d2fa9c70353c8fe121811d93",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/docs/gallery/artifacts/agent-run.lifecycle.html b/docs/gallery/artifacts/agent-run.lifecycle.html
index 2f871a7b..37c84d2f 100644
--- a/docs/gallery/artifacts/agent-run.lifecycle.html
+++ b/docs/gallery/artifacts/agent-run.lifecycle.html
@@ -6351,8 +6351,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/agent-tool-call.workflow.html b/docs/gallery/artifacts/agent-tool-call.workflow.html
index e99419d6..21306161 100644
--- a/docs/gallery/artifacts/agent-tool-call.workflow.html
+++ b/docs/gallery/artifacts/agent-tool-call.workflow.html
@@ -6422,8 +6422,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/async-job-roundtrip.sequence.html b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
index 265704de..b0b24847 100644
--- a/docs/gallery/artifacts/async-job-roundtrip.sequence.html
+++ b/docs/gallery/artifacts/async-job-roundtrip.sequence.html
@@ -6443,8 +6443,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/cache-miss.sequence.html b/docs/gallery/artifacts/cache-miss.sequence.html
index 4f3a27ff..9fa75af2 100644
--- a/docs/gallery/artifacts/cache-miss.sequence.html
+++ b/docs/gallery/artifacts/cache-miss.sequence.html
@@ -6431,8 +6431,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/deployment-release.lifecycle.html b/docs/gallery/artifacts/deployment-release.lifecycle.html
index 6adcbe55..c68f8618 100644
--- a/docs/gallery/artifacts/deployment-release.lifecycle.html
+++ b/docs/gallery/artifacts/deployment-release.lifecycle.html
@@ -6377,8 +6377,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/event-stream.dataflow.html b/docs/gallery/artifacts/event-stream.dataflow.html
index bb9c4691..8a5d076a 100644
--- a/docs/gallery/artifacts/event-stream.dataflow.html
+++ b/docs/gallery/artifacts/event-stream.dataflow.html
@@ -6455,8 +6455,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/incident-response.workflow.html b/docs/gallery/artifacts/incident-response.workflow.html
index 724d46db..9d67203c 100644
--- a/docs/gallery/artifacts/incident-response.workflow.html
+++ b/docs/gallery/artifacts/incident-response.workflow.html
@@ -6382,8 +6382,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/product-analytics.dataflow.html b/docs/gallery/artifacts/product-analytics.dataflow.html
index 184ed9b3..5eacdc4a 100644
--- a/docs/gallery/artifacts/product-analytics.dataflow.html
+++ b/docs/gallery/artifacts/product-analytics.dataflow.html
@@ -6416,8 +6416,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/production-deployment.architecture.html b/docs/gallery/artifacts/production-deployment.architecture.html
index 7169eca2..fd058c7e 100644
--- a/docs/gallery/artifacts/production-deployment.architecture.html
+++ b/docs/gallery/artifacts/production-deployment.architecture.html
@@ -6447,8 +6447,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/release-delivery.workflow.html b/docs/gallery/artifacts/release-delivery.workflow.html
index acb34066..625e2e07 100644
--- a/docs/gallery/artifacts/release-delivery.workflow.html
+++ b/docs/gallery/artifacts/release-delivery.workflow.html
@@ -6408,8 +6408,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/artifacts/web-app.architecture.html b/docs/gallery/artifacts/web-app.architecture.html
index 1757a026..0493a684 100644
--- a/docs/gallery/artifacts/web-app.architecture.html
+++ b/docs/gallery/artifacts/web-app.architecture.html
@@ -6380,8 +6380,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/docs/gallery/manifest.json b/docs/gallery/manifest.json
index 966f249d..e6accd19 100644
--- a/docs/gallery/manifest.json
+++ b/docs/gallery/manifest.json
@@ -27,8 +27,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 11,
- "artifactBytes": 819421,
- "artifactSha256": "28c652d28fa8c2d438bdd79ef3d5a2401b1439c338d063ee65d76e3758e415bf",
+ "artifactBytes": 819631,
+ "artifactSha256": "c040b6bce3c9cab51146dfa44120204705ed68dbada05685de3e6ff40ecffdcc",
"sourceBytes": 5687,
"sourceSha256": "4d3f6c23de2ca7d306e05d0041a9506833bb5a164a2bddc2d1984cf4da3ee90c",
"checks": [
@@ -127,8 +127,8 @@
"engineeringProfile": "deployment-ownership",
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 821255,
- "artifactSha256": "52c0c6b565e0edc8bd057a9fef2114f72810810a1afe686982436cbf186736d7",
+ "artifactBytes": 821465,
+ "artifactSha256": "3ddcf14ba2475722d316c07f4dec49006e3ccd911187888dd8898fc54547ad7f",
"sourceBytes": 5476,
"sourceSha256": "ec484aa8576664fdb207b543fa49486b23273faccb7a5071e1a0becfb48c22eb",
"checks": [
@@ -227,8 +227,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 12,
- "artifactBytes": 814544,
- "artifactSha256": "6598308f5dcc69bd0d5d9abb44216c3ad9064b7e40744c42832def1380ab11de",
+ "artifactBytes": 814754,
+ "artifactSha256": "0570c137a36a8505cecd894fbd74ff8a49c5ab06746c25158467d9a782e35a64",
"sourceBytes": 4374,
"sourceSha256": "9a799a3661c16cd6ab4f6373ff6a04da95a9ab70d93b0a349b668466f4912fd7",
"checks": [
@@ -327,8 +327,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 815621,
- "artifactSha256": "c7ef451efe4e512a8bdbbe06c9d6b09b16adb5a332c7cc197ad8bc8a185d43a4",
+ "artifactBytes": 815831,
+ "artifactSha256": "a0af2ccafa809ff0eb21ad5a9c652b2edab61f0a7d068b5bf756464d506eb1d4",
"sourceBytes": 5164,
"sourceSha256": "e5c880417eac1623923c3dd5461e0c78acd762e1621a28bd53fc14a84cad6a91",
"checks": [
@@ -427,8 +427,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 10,
- "artifactBytes": 812950,
- "artifactSha256": "ceab0e53c73adaa3782477eefe03f1aaf6049939e252ede2bcc69e2cc7a8b75c",
+ "artifactBytes": 813160,
+ "artifactSha256": "d688a532de33aa5b32be24e3ad06cb18768c92e6db3f8fbd00a8dc32db2b590d",
"sourceBytes": 5375,
"sourceSha256": "5c760c82eee545dfb7da38a4e628059d7891af4cfbfc13c8a7009ea64f69aa1b",
"checks": [
@@ -527,8 +527,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 10,
- "artifactBytes": 816861,
- "artifactSha256": "42abe9054ade34db4584c35bb0c3a21082d4a5f0e35d1cdabe49fa1625eecb62",
+ "artifactBytes": 817071,
+ "artifactSha256": "8e09936581b5240aab423aa698545e85103cf1a3d47cc6a5d0a0582c127625ba",
"sourceBytes": 5618,
"sourceSha256": "91411404fb4828a3b7ea358f3a7b9877781c9e9dc9c04b42b6eb4a757281b59f",
"checks": [
@@ -627,8 +627,8 @@
"engineeringProfile": null,
"nodeCount": 7,
"edgeCount": 14,
- "artifactBytes": 813635,
- "artifactSha256": "917154188a350ef03c325769de6458726a2069e5d20be40e66ff79c091e39828",
+ "artifactBytes": 813845,
+ "artifactSha256": "ea86c3009152eefa0d6a54792d6b66858664867aa78f3db12cb11488013cd1da",
"sourceBytes": 4370,
"sourceSha256": "545f20920c89b69c2bb1f15508d5543fddbeb15cffba61e102206e04bd5a5cd9",
"checks": [
@@ -727,8 +727,8 @@
"engineeringProfile": null,
"nodeCount": 12,
"edgeCount": 12,
- "artifactBytes": 820842,
- "artifactSha256": "b2e98edbae82b63fe334726428ce1d224e25e61f3e7bf669c4094fa6cd7742a3",
+ "artifactBytes": 821052,
+ "artifactSha256": "9fc3e47d910f25f3403058d8200faa252e161afd43ba7a56a6ba60eaf0f96692",
"sourceBytes": 5433,
"sourceSha256": "a92d6597ddbe164f395da32a7d4b33cfae08edd7d9600a6fb45a2058e5bbb43e",
"checks": [
@@ -827,8 +827,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 6,
- "artifactBytes": 809964,
- "artifactSha256": "07ec5b9308f55df528b6ff3823875e6d01a6e7860f9d35392b58c552eb335180",
+ "artifactBytes": 810174,
+ "artifactSha256": "de9b9fe608b5ece07d6d516665fe1cc844f09a76354ee46c8f1c80837624e457",
"sourceBytes": 4044,
"sourceSha256": "7c0ad72ee7affbd6c6e4758b7520d61ddd4508c917acf36beabcad3ee7ca3ba7",
"checks": [
@@ -927,8 +927,8 @@
"engineeringProfile": null,
"nodeCount": 11,
"edgeCount": 6,
- "artifactBytes": 811506,
- "artifactSha256": "1a5633fe1e8eefe3f3e854e547f9e22b6ecd1978b25b92c567e99959f1a15cff",
+ "artifactBytes": 811716,
+ "artifactSha256": "0b3012b48540846ef9def49e940a581842db63c7ecdf2af45d0ad85b1a4bb57c",
"sourceBytes": 4274,
"sourceSha256": "735c2c5819266e6ea2a71775b6eefce98b53030ce90cb721dc8e1d022ce5be71",
"checks": [
@@ -1027,8 +1027,8 @@
"engineeringProfile": null,
"nodeCount": 10,
"edgeCount": 9,
- "artifactBytes": 811599,
- "artifactSha256": "28d8e3d85a6727e04906825e06c73d8b38844b46308ada213846d2c7ac37355d",
+ "artifactBytes": 811809,
+ "artifactSha256": "426db7bd1842de45916b00233b859dbb6cfb17a0d2fa9c70353c8fe121811d93",
"sourceBytes": 3793,
"sourceSha256": "483350f5297df682aba4e4a0fa491307ce3d3abd725ae4df07fab177490752cf",
"checks": [
diff --git a/examples/checkout-platform-delta.html b/examples/checkout-platform-delta.html
index becac4e3..f81f6e07 100644
--- a/examples/checkout-platform-delta.html
+++ b/examples/checkout-platform-delta.html
@@ -11139,8 +11139,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: &#39;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&#39; +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
@@ -26366,8 +26369,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: &#39;&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&#39; +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
@@ -35448,7 +35454,9 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
'text[data-delta-boundary-state="added"]{fill:#34d399!important}text[data-delta-boundary-state="removed"]{fill:#fb7185!important}text[data-delta-boundary-state="changed"]{fill:#fbbf24!important}text[data-delta-boundary-state="moved-from"]{fill:#7dd3fc!important;opacity:.55}' +
'.delta-node-marker circle{fill:#071019;stroke:currentColor;stroke-width:1.5}.delta-node-marker text,.delta-edge-marker,.delta-boundary-marker{fill:currentColor;font:800 9px ui-monospace,SFMono-Regular,Menlo,monospace}';
clone.insertBefore(style, clone.firstChild);
- return new XMLSerializer().serializeToString(clone);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
+ return '<?xml version="1.0" encoding="UTF-8"?>\n' + new XMLSerializer().serializeToString(clone);
}
function artifactName(suffix) {
diff --git a/examples/checkout-platform-delta.receipt.json b/examples/checkout-platform-delta.receipt.json
index 70f27f9e..7a3196dd 100644
--- a/examples/checkout-platform-delta.receipt.json
+++ b/examples/checkout-platform-delta.receipt.json
@@ -219,8 +219,8 @@
"Boundary identity is conservatively derived from kind + label."
],
"artifact": {
- "sha256": "090756fdc6b2a2a2341bd6ab8f7958f330c0f0cf5ece64a66af9cc68827b3f7a",
- "bytes": 2216759
+ "sha256": "581a09d56e822f86abd90101799c51613f16ef92b79b86a13d8d200035b0c9fc",
+ "bytes": 2217437
},
"validation": {
"checksPassed": 28,
diff --git a/examples/dataflow-product-analytics.html b/examples/dataflow-product-analytics.html
index 184ed9b3..5eacdc4a 100644
--- a/examples/dataflow-product-analytics.html
+++ b/examples/dataflow-product-analytics.html
@@ -6416,8 +6416,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/examples/lifecycle-agent-run.html b/examples/lifecycle-agent-run.html
index 2f871a7b..37c84d2f 100644
--- a/examples/lifecycle-agent-run.html
+++ b/examples/lifecycle-agent-run.html
@@ -6351,8 +6351,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/examples/sequence-cache-miss-request.html b/examples/sequence-cache-miss-request.html
index 4f3a27ff..9fa75af2 100644
--- a/examples/sequence-cache-miss-request.html
+++ b/examples/sequence-cache-miss-request.html
@@ -6431,8 +6431,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/examples/web-app-rendered.html b/examples/web-app-rendered.html
index 1757a026..0493a684 100644
--- a/examples/web-app-rendered.html
+++ b/examples/web-app-rendered.html
@@ -6380,8 +6380,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/examples/web-app.html b/examples/web-app.html
index 1757a026..0493a684 100644
--- a/examples/web-app.html
+++ b/examples/web-app.html
@@ -6380,8 +6380,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/examples/workflow-agent-tool-call-rendered.html b/examples/workflow-agent-tool-call-rendered.html
index e99419d6..21306161 100644
--- a/examples/workflow-agent-tool-call-rendered.html
+++ b/examples/workflow-agent-tool-call-rendered.html
@@ -6422,8 +6422,11 @@ OTHER DEALINGS IN THE FONT SOFTWARE.
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,
diff --git a/viewer/export.js b/viewer/export.js
index 7337ec07..ea855d71 100644
--- a/viewer/export.js
+++ b/viewer/export.js
@@ -378,8 +378,11 @@
clone.insertBefore(style, clone.firstChild);
clone.insertBefore(bgRect, style.nextSibling);
+ // The XML declaration pins UTF-8: without it, consumers that guess an
+ // encoding instead of defaulting to UTF-8 mangle non-ASCII text.
return {
- svgString: new XMLSerializer().serializeToString(clone),
+ svgString: '<?xml version="1.0" encoding="UTF-8"?>\n' +
+ new XMLSerializer().serializeToString(clone),
width: vb.width * scale,
height: vb.height * scale,
canonicalStateClean: canonicalStateClean,