Tagged articles
ascii
28 articles · Page 1 of 1
This article traces the evolution of file path separators from Multics' angle brackets through Unix's forward slash to Windows' backslash, explaining how keyboard layouts, existing character assignments, and cross-OS compatibility shaped the conventions we use today.
asciifile-path-historykeyboard-layout
0 likes · 18 min read

This article explains ASCII encoding, the standard that maps 128 characters to numbers 0-127, detailing control codes, printable characters, extended ASCII, programming applications like character comparison and case conversion, and why ASCII's English-only limitation led to Unicode.
ASCII tableUnicode precursorascii
0 likes · 7 min read

This article explains why computers use binary (0 and 1) instead of decimal, covering the physical reliability of two voltage states, binary counting and conversion methods, how all data types are represented as bit sequences, and the role of Boolean logic and hexadecimal shorthand in computing.
asciibinarybit
0 likes · 8 min read

This note demonstrates how Python encodes and decodes Unicode strings using utf-8 and GBK, and how the chr() and ord() functions convert between characters and their ASCII codes, with concrete code examples and output illustrations.
Pythonasciichr()
0 likes · 3 min read

This article explains how PHP's built‑in ord() function returns the ASCII code of a string's first character, details its syntax and parameters, shows multiple usage examples—including loops and handling of multibyte characters—and highlights important limitations and alternatives.
PHPString handlingascii
0 likes · 4 min read

The article explains the historical origins of the carriage‑return (\r) and line‑feed (\n) control characters, their ASCII codes, how various operating systems (Windows, Unix, macOS) represent line endings, the practical impact on file compatibility, and tools for converting between formats.
asciicontrol charactersfile compatibility
0 likes · 5 min read

This article explains how character encoding works—from ASCII and its extensions to Chinese GB2312 and GBK, through Unicode's UCS‑2, UCS‑4, and the versatile UTF‑8—showing why mismatched encodings produce garbled text and why UTF‑8 is the default in Spring Boot.
GB2312GBKUTF-8
0 likes · 9 min read

This article explains how to generate the iconic green falling‑character “code rain” effect from The Matrix in a terminal using Python, detailing the required script, ASCII character set, matrix update logic, and optional ANSI color enhancements.
ANSI colorsCode RainMatrix Effect
0 likes · 4 min read

This article explains how computer text is represented by assigning unique numeric codes to characters and converting those codes into binary, then compares the most common Chinese encodings—ASCII, GB2312, GBK, GB18030, and UTF‑8—detailing their compatibility, byte lengths, and practical impact on software development.
GB18030GB2312GBK
0 likes · 14 min read

This article explains the purpose and mechanics of common Chinese character encodings—including ASCII, GB2312, GBK, GB18030, UTF‑8, ANSI and Latin‑1—detailing how they map characters to numbers, handle byte boundaries, and maintain compatibility to avoid garbled text.
ChineseGBKUTF-8
0 likes · 13 min read

This article explains the history, purpose, and differences of major character encodings—including ASCII, GB2312, Unicode, and UTF-8—while showing how they are used and converted in modern computing environments.
GB2312UTF-8Unicode
0 likes · 11 min read

This article explains PHP's built-in ord() function, detailing its syntax, parameters, return values, and usage examples—including single character, string, and looped character processing—while noting its limitations with multibyte characters and providing guidance on handling such cases.
Stringasciiord()
0 likes · 4 min read

This article explains the concepts of characters, character sets, and character encoding, describes how computers store and render text using methods like ASCII, GB2312, Unicode, and UTF‑8/16/32, and discusses why garbled text occurs across different languages and systems.
UTF-8Unicodeascii
0 likes · 10 min read

The article traces character encoding from early telegraph and Morse code through ASCII, ISO national sets and Chinese standards, explains Unicode’s unification and its UTF‑8/‑16/‑32 forms, and shows how modern languages—especially JavaScript—handle code points, highlighting the cultural and technical significance for developers.
JavaScriptUTF-16UTF-8
0 likes · 31 min read

This tutorial explains the origins and evolution of character encoding, covering early ASCII, Chinese GBK/GB18030, the universal Unicode standard, UTF‑8 variable‑length encoding, and practical differences between Python 2 and Python 3 with code examples.
GBKPythonUTF-8
0 likes · 9 min read

This article walks through the evolution of character encoding—from the early ASCII standard, through Chinese extensions like GB2312 and GBK, to the universal Unicode system and its UTF‑32, UTF‑16, and UTF‑8 encodings—explaining their structures, usage, and common pitfalls.
GB2312JavaTomcat
0 likes · 12 min read

This article explains the origins and meanings of the \n (newline) and \r (carriage‑return) control characters, compares how Windows, Unix, and classic Mac systems handle line endings, and provides practical guidance for writing portable code and converting files across platforms.
File Conversionasciicarriage return
0 likes · 5 min read

This article explains the process by which keyboard input is transformed into ASCII codes, how input methods map those codes to proprietary encodings, the role of code pages and fonts in rendering characters, and the use of Unicode, BOM, and endianness when saving text files.
Unicodeasciicharacter encoding
0 likes · 3 min read

This article explains how character encoding works, using ASCII, Unicode, UTF‑8 and GBK examples to reveal why the garbled string “锟斤拷” appears when mismatched encodings are processed, and shows the underlying byte‑level transformations.
GBKUTF-8Unicode
0 likes · 4 min read

This article introduces the ASCII encoding standard defined in RFC20, explains its binary mapping and character ranges, demonstrates Python's built‑in ord/chr functions, and provides a custom Rust crate implementing equivalent ASCII conversion utilities with testing examples.
PythonRFC20Rust
0 likes · 9 min read

This article explains the fundamentals of character encoding—from Morse‑code analogies and ASCII to Unicode, UTF‑8/UTF‑16/UTF‑32, and Chinese encodings like GB2312, GBK, and GB18030—illustrating how mismatched encodings cause garbled text and how to avoid them.
GBKUTF-8Unicode
0 likes · 10 min read

This article explains the differences between JavaScript's escape, encodeURI and encodeURIComponent functions, the principles of percent‑encoding, the classification of reserved, unreserved and unsafe characters, and provides an overview of ASCII, Unicode and UTF‑8 character encodings.
URL encodingUTF-8Unicode
0 likes · 11 min read

This article explains the fundamentals of character encoding in Python, covering concepts like ASCII, GB2312/GBK, Unicode, UTF‑8, and the differences between Python 2 and Python 3, while illustrating the encoding lifecycle of a .py file with clear examples and images.
GBKPythonUTF-8
0 likes · 10 min read

This article chronicles the historical development of ASCII, RS‑232, early hardware terminals, modems, 36‑bit systems, and related Unix terminology, explaining how these once‑common technologies shaped modern computing and why their legacy still matters today.
36-bitBBSRS-232
0 likes · 23 min read


ITPUBMar 6, 2017 · Databases
The article explains the MySQL source command error caused by an ASCII '\0' character, describes the purpose of the --binary-mode option, shows why the null byte is disallowed in text mode, and provides a reproducible example with code and command‑line steps to fix the issue.
ErrorMySQLNUL byte
0 likes · 5 min read


ITPUBSep 19, 2016 · Fundamentals
This article explains the fundamentals of character encoding, covering the evolution from the 7‑bit ASCII standard to Chinese GB2312, the development of Unicode and UTF‑8, and provides practical guidance for handling these encodings in Windows and Linux C programs, including a sample UTF‑8 detection function.
GB2312UTF-8Unicode
0 likes · 13 min read


ITPUBApr 19, 2016 · Fundamentals
This article explains the fundamentals of character encoding, covering character sets, encoding rules, and common schemes such as ASCII, Unicode, UTF‑8, GB2312, GBK, and GB18030, helping developers prevent and resolve garbled text issues in web and database applications.
GBKUTF-8Unicode
0 likes · 10 min read


21CTOAug 14, 2015 · Fundamentals
This article explains how computers store and display characters using binary, defines character sets and encodings such as ASCII, GB2312, GBK, GB18030, BIG5 and Unicode, compares UTF‑8, UTF‑16, UTF‑32, and describes related HTTP headers like Accept‑Charset, Content‑Type, and Content‑Encoding.
CharsetGB18030HTTP headers
0 likes · 20 min read
