Index Ai Academy
Glossary · Phase 7 · Software engineering

Mojibake

Garbled text like Café that appears when bytes are decoded with the wrong encoding.

Try it now

Decode as early as possible, work with str everywhere inside, encode as late as possible. Each boundary names its encoding.

Learn it properly

Text, bytes and encodings · str and bytes, UTF-8, decoding errors, normalization and base64. About 35 minutes.

Create a free account See what's in the lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write