You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(runner): use encodeURIComponent for UTF-8 safe data URIs
Changed from base64 encoding to URL encoding (encodeURIComponent) for
data URIs to handle UTF-8 characters properly. This matches the pattern
already used in runtime.ts and avoids the btoa() Latin1 limitation.
Changes:
- createDataCellURI() now uses encodeURIComponent instead of base64
- getJSONFromDataURI() already handles both formats (base64 and URL-encoded)
- Update tests to use getJSONFromDataURI() instead of manual atob() decoding
- Add comprehensive test for UTF-8 character support
This fixes integration test failures where recipes containing non-ASCII
characters (emojis, Chinese, Arabic, etc.) would cause data URI creation
to fail with "characters outside of the Latin1 range" error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments