Encoding Error & Mojibake Playground
Explore how decoders handle invalid sequences, byte-level truncation, Base64 padding corruption, and Mojibake character set mismatches.
Byte-by-Byte Timeline Inspector
Valid Encoded Sequence (0 Errors)
The provided string strictly complies with the specification for Base64. No decoding exceptions or illegal character offset violations detected.
Common Encoding Pitfalls & Explanations
Key concepts in string encoding, byte offsets, and decoding errors.
Padding '=' Symbol Failures
Base64 processes data in 3-byte (24-bit) blocks. When input length is not a multiple of 3 bytes, trailing '=' characters pad the remaining 6-bit units. Omission or misplaced '=' causes decoder exceptions.
Replacement Character ()
UTF-8 uses variable-length encoding (1 to 4 bytes per codepoint). If a multi-byte sequence is truncated mid-stream, standard decoders emit the Unicode replacement character `` (U+FFFD).
Character Set Misinterpretation
Mojibake occurs when text written in one encoding (e.g. UTF-8) is decoded using a different character set (e.g. ISO-8859-1), displaying garbled symbols such as "é" instead of "é".