Tagged articles
GBK
21 articles · Page 1 of 1
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 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 why Chinese characters often appear garbled when using Python web crawlers and presents three practical solutions—switching to response.content, manually setting the response encoding, and applying a universal encode‑decode trick—to reliably decode GBK‑encoded text.
GBKPythonencoding
0 likes · 6 min read

This article explains the fundamentals of character encoding, covering Unicode’s universal character set, the structure of its planes and surrogate areas, the variable‑length UTF‑8 and UTF‑16 encodings, Chinese‑specific GBK encoding, and practical iOS code examples for handling Unicode, emojis and regular‑expression based Chinese character detection.
GBKUTF-8Unicode
0 likes · 12 min read

This article walks through a real‑world Python encoding problem where Unicode \u sequences cause garbled Chinese text, demonstrates the faulty code, and provides a corrected solution using json.dumps with ensure_ascii=False and GBK encoding to produce proper Base64 output.
Base64GBKJSON
0 likes · 4 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

A colleague encountered an "Incorrect string value" error when inserting UTF‑8 text into a GBK‑encoded MySQL table, and the article explains how charset mismatches and the use of the CHAR() function cause the failure, then provides reproducible tests and concrete solutions.
CharsetGBKINSERT error
0 likes · 6 min read

This article explains why characters appear as garbled text when encoding and decoding methods mismatch, explores how Excel defaults to GBK, shows how to convert files with iconv, and walks through the evolution from ASCII to GB2312, GBK, GB18030, and finally Unicode's UTF‑8 encoding.
GBKUTF-8Unicode
0 likes · 6 min read

This article explains why the garbled string “锟斤拷” appears in Chinese software, covering basic character encoding concepts, the Unicode replacement character, UTF‑8 decoding failures, and how GBK’s double‑byte scheme turns the placeholder bytes into the visible characters 锟、斤、拷.
GBKUTF-8Unicode
0 likes · 4 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 explains how MySQL’s character_set parameters such as character_set_client and character_set_results control the encoding and decoding of client commands and query results, illustrates common pitfalls with UTF‑8, GBK and Latin‑1, and provides practical commands to avoid garbled text.
GBKMySQLUTF-8
0 likes · 10 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

The article explains how Chinese filenames cause encoding errors when uploading to Amazon S3, why S3 forces UTF‑8 for website access, and presents a practical Nginx‑based proxy solution that transparently converts GBK‑encoded URIs to UTF‑8 to ensure reliable file retrieval.
GBKS3UTF-8
0 likes · 9 min read

This guide explains how to correctly truncate strings containing Chinese characters in PHP by detecting character byte length for GBK and UTF‑8 encodings, and provides a reusable my_substr function with example usage.
BackendChinese charactersGBK
0 likes · 4 min read

This article introduces the fundamentals of character encoding and decoding, explains the difference between character sets and encodings, and demonstrates practical Node.js examples using the iconv‑lite library to correctly encode and decode Chinese text, helping developers prevent common garbled‑text issues.
GBKNode.jsUTF-8
0 likes · 7 min read


ITPUBJun 21, 2017 · Databases
This article explains the three‑stage encoding and decoding flow when inserting and retrieving data in MySQL, identifies why mismatched character sets cause garbled text, and shows how to ensure consistent charset settings across client, server, and tables.
GBKMySQLUTF-8
0 likes · 5 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


ITPUBSep 13, 2016 · Fundamentals
This article explains why text files can become unreadable garbled characters, explores binary representation, locale settings, and common character sets like ANSI and Unicode, and provides practical command‑line techniques such as using iconv to convert between encodings and avoid display issues.
GBKIConvcharacter-set
0 likes · 10 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

This article explains character sets and encodings, shows why MySQL data can become garbled, and provides step‑by‑step methods—including proper configuration, common pitfalls, and reliable repair techniques—to prevent and correct encoding issues such as emoji storage failures.
GBKMySQLUTF-8
0 likes · 24 min read
