From 7c761df010e292abe176863e1e1b6a8e64567ba3 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Sat, 1 Aug 2026 12:32:14 -0400 Subject: [PATCH] fix emoji encoding issue --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index dafbbca..84713f7 100644 --- a/app.py +++ b/app.py @@ -142,7 +142,8 @@ es.onmessage = (e) => { titleEl.textContent = 'Error generating page'; document.querySelector('.subtitle').textContent = 'Please refresh and try again'; } else { - const decoded = atob(e.data); + const bytes = Uint8Array.from(atob(e.data), c => c.charCodeAt(0)); + const decoded = new TextDecoder().decode(bytes); htmlChunks.push(decoded); htmlSize += decoded.length; chars = htmlSize;