[{"data":1,"prerenderedAt":117},["ShallowReactive",2],{"term-u\u002Futf-8":3,"related-u\u002Futf-8":107},{"id":4,"title":5,"acronym":5,"body":6,"category":88,"description":89,"difficulty":90,"extension":91,"letter":92,"meta":93,"navigation":94,"path":95,"related":96,"seo":100,"sitemap":101,"stem":104,"subcategory":105,"__hash__":106},"terms\u002Fterms\u002Fu\u002Futf-8.md","UTF-8",{"type":7,"value":8,"toc":82},"minimark",[9,14,18,22,25,29,71,75,78],[10,11,13],"h2",{"id":12},"eli5-the-vibe-check","ELI5 — The Vibe Check",[15,16,17],"p",{},"UTF-8 is the most popular way to turn Unicode characters into actual bytes on disk. It's clever — English letters take 1 byte, exotic characters take more. It's backwards-compatible with plain ASCII, which is why it took over the world.",[10,19,21],{"id":20},"real-talk","Real Talk",[15,23,24],{},"UTF-8 is a variable-width character encoding that represents Unicode code points using 1 to 4 bytes per character. It is the dominant encoding on the web and in most modern systems due to its ASCII compatibility and space efficiency for Latin scripts.",[10,26,28],{"id":27},"show-me-the-code","Show Me The Code",[30,31,36],"pre",{"className":32,"code":33,"language":34,"meta":35,"style":35},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Python — encoding and decoding UTF-8\ntext = \"Hello 😀\"\nbytes_data = text.encode(\"utf-8\")\nprint(bytes_data)  # b'Hello \\xf0\\x9f\\x98\\x80'\nprint(bytes_data.decode(\"utf-8\"))  # Hello 😀\n","python","",[37,38,39,47,53,59,65],"code",{"__ignoreMap":35},[40,41,44],"span",{"class":42,"line":43},"line",1,[40,45,46],{},"# Python — encoding and decoding UTF-8\n",[40,48,50],{"class":42,"line":49},2,[40,51,52],{},"text = \"Hello 😀\"\n",[40,54,56],{"class":42,"line":55},3,[40,57,58],{},"bytes_data = text.encode(\"utf-8\")\n",[40,60,62],{"class":42,"line":61},4,[40,63,64],{},"print(bytes_data)  # b'Hello \\xf0\\x9f\\x98\\x80'\n",[40,66,68],{"class":42,"line":67},5,[40,69,70],{},"print(bytes_data.decode(\"utf-8\"))  # Hello 😀\n",[10,72,74],{"id":73},"when-youll-hear-this","When You'll Hear This",[15,76,77],{},"\"Always save files as UTF-8.\" \u002F \"The API response had garbled characters — it was encoded as Latin-1, not UTF-8.\"",[79,80,81],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":35,"searchDepth":49,"depth":49,"links":83},[84,85,86,87],{"id":12,"depth":49,"text":13},{"id":20,"depth":49,"text":21},{"id":27,"depth":49,"text":28},{"id":73,"depth":49,"text":74},"general","UTF-8 is the most popular way to turn Unicode characters into actual bytes on disk. It's clever — English letters take 1 byte, exotic characters take more.","intermediate","md","u",{},true,"\u002Fterms\u002Fu\u002Futf-8",[97,98,99],"Unicode","Base64","Regex",{"title":5,"description":89},{"changefreq":102,"priority":103},"weekly",0.7,"terms\u002Fu\u002Futf-8",null,"atEsEbACewrbDUabD9inCEnbmrzypEj2vfGitMXga_8",[108,111,114],{"title":98,"path":109,"acronym":105,"category":88,"difficulty":90,"description":110},"\u002Fterms\u002Fb\u002Fbase64","Base64 is like translating a photo into text by converting it to a long string of letters and numbers.",{"title":99,"path":112,"acronym":99,"category":88,"difficulty":90,"description":113},"\u002Fterms\u002Fr\u002Fregex","Regex is a secret language for describing patterns in text.",{"title":97,"path":115,"acronym":105,"category":88,"difficulty":90,"description":116},"\u002Fterms\u002Fu\u002Funicode","Unicode is the master list of every character ever invented by humans — letters, numbers, emojis, ancient Sumerian cuneiform, all of it.",1776518320946]