mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-18 00:55:54 +00:00
- Fix getAsDataURI to properly encode UTF-8 characters before base64 conversion - Add React import required for JSX - Add comprehensive unit tests for playlistHtml including non-Latin-1 characters - Test coverage includes emoji, Chinese, and Cyrillic characters The previous implementation used window.btoa() directly which only supports Latin-1 (ISO-8859-1) characters. This caused InvalidCharacterError when playlist track names contained UTF-8 characters like emoji or non-Latin scripts. The fix encodes UTF-8 strings to percent-encoded format first, then converts to Latin-1 bytes before base64 encoding, ensuring all Unicode characters are properly preserved. |
||
|---|---|---|
| .. | ||
| ani-cursor | ||
| skin-database | ||
| skin-museum-og | ||
| webamp | ||
| webamp-docs | ||
| webamp-modern | ||
| winamp-eqf | ||