Tagged articles
25 articles
Page 1 of 1
php Courses
php Courses
Sep 30, 2025 · Backend Development

Master PHP’s ord() Function: Convert Characters to ASCII Values

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.

ASCIIPHPord function
0 likes · 4 min read
Master PHP’s ord() Function: Convert Characters to ASCII Values
Liangxu Linux
Liangxu Linux
Mar 31, 2025 · Fundamentals

Why Do Windows and Unix Use Different Line Endings? Understanding \n vs \r

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.

ASCIIUnixWindows
0 likes · 5 min read
Why Do Windows and Unix Use Different Line Endings? Understanding \n vs \r
Liangxu Linux
Liangxu Linux
Jul 14, 2024 · Fundamentals

Decoding Chinese Text: ASCII, GB2312, GBK, GB18030, and UTF‑8 Explained

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.

ASCIIGB18030GB2312
0 likes · 14 min read
Decoding Chinese Text: ASCII, GB2312, GBK, GB18030, and UTF‑8 Explained
php Courses
php Courses
Sep 22, 2023 · Backend Development

Using PHP ord() Function to Retrieve ASCII Values of Characters

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.

ASCIIStringord()
0 likes · 4 min read
Using PHP ord() Function to Retrieve ASCII Values of Characters
Tencent Cloud Developer
Tencent Cloud Developer
May 17, 2022 · Fundamentals

A Comprehensive History and Overview of Character Encoding and Unicode

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.

ASCIIJavaScriptUTF-16
0 likes · 31 min read
A Comprehensive History and Overview of Character Encoding and Unicode
macrozheng
macrozheng
Feb 8, 2021 · Fundamentals

Why Do You See “锟斤拷” in Text? Uncover the Encoding Mystery

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.

ASCIIGBKUTF-8
0 likes · 4 min read
Why Do You See “锟斤拷” in Text? Uncover the Encoding Mystery
Sohu Tech Products
Sohu Tech Products
Dec 25, 2019 · Fundamentals

Understanding ASCII: Standards, Python and Rust Implementations

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.

ASCIIPythonRFC20
0 likes · 9 min read
Understanding ASCII: Standards, Python and Rust Implementations
ITPUB
ITPUB
Mar 6, 2017 · Databases

Why MySQL Source Fails with ASCII '\0' and How to Resolve It

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.

ASCIIErrorNUL byte
0 likes · 5 min read
Why MySQL Source Fails with ASCII '\0' and How to Resolve It
ITPUB
ITPUB
Sep 19, 2016 · Fundamentals

Understanding Character Encoding: From ASCII to Unicode and UTF‑8

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.

ASCIIC programmingGB2312
0 likes · 13 min read
Understanding Character Encoding: From ASCII to Unicode and UTF‑8
21CTO
21CTO
Aug 14, 2015 · Fundamentals

Why Web Pages Show Garbled Text: Charsets, Encodings & HTTP Headers

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.

ASCIICharsetGB18030
0 likes · 20 min read
Why Web Pages Show Garbled Text: Charsets, Encodings & HTTP Headers