Base64 Is Not Text Encoding: Avoiding Unicode Corruption in JavaScript
Base64 is often described as “text encoding”, but that description hides the exact boundary where most bugs happen. Base64 does not preserve characters, fonts, or Unicode code points. It converts bytes into a safe ASCII alphabet. UTF-8 is what converts human-…