Tagged articles
123 articles
Page 2 of 2
JavaScript
JavaScript
Dec 14, 2018 · Backend Development

How to Process Chinese Input in Node.js: Trim, Replace, and Output

This guide demonstrates how to configure Node.js stdin for UTF-8, read incoming Chinese text, remove question particles and punctuation, replace question marks with exclamation marks, and output the transformed strings, with clear code examples and expected results.

Chinese text processingEncodingJavaScript
0 likes · 1 min read
How to Process Chinese Input in Node.js: Trim, Replace, and Output
Senior Brother's Insights
Senior Brother's Insights
Aug 15, 2018 · Fundamentals

How Does Base64 Really Work? A Deep Dive into Encoding Basics

This article explains the origin, alphabet, step‑by‑step conversion process, padding rules, and provides a Java example to illustrate how Base64 encodes binary data into printable characters, highlighting why the output is about one‑third larger than the input.

Base64Binary-to-TextData Transmission
0 likes · 8 min read
How Does Base64 Really Work? A Deep Dive into Encoding Basics
Java Captain
Java Captain
May 24, 2018 · Backend Development

HttpServletResponse Usage: Sending Data, Managing Encoding, and Implementing File Downloads in Java Servlets

This article explains how HttpServletResponse represents server responses in Java web applications, covering methods for sending data, headers, and status codes, demonstrates outputting Chinese characters via OutputStream and PrintWriter, shows numeric output handling, and provides detailed examples of file download implementations with proper encoding considerations.

EncodingFileDownloadHttpServletResponse
0 likes · 19 min read
HttpServletResponse Usage: Sending Data, Managing Encoding, and Implementing File Downloads in Java Servlets
ITPUB
ITPUB
Apr 9, 2018 · Databases

Why MySQL Shows Garbled Text and How to Fix It

This article explains the root causes of MySQL character‑set garbling, details the encoding and decoding steps during data storage and retrieval, and provides practical methods—including dump/reload and binary conversion—to prevent and repair corrupted text.

Character SetEncodingMySQL
0 likes · 14 min read
Why MySQL Shows Garbled Text and How to Fix It
DevOps
DevOps
Jan 7, 2018 · Fundamentals

Resolving Chinese Character Encoding Issues in Git on Windows

This article explains why Git on Windows often displays garbled Chinese characters in tools like Git Bash, CMD, PowerShell, and IDEs, and provides step‑by‑step solutions—including Git config changes and environment variable adjustments—to enforce UTF‑8 encoding and eliminate the problem.

EncodingUTF-8Windows
0 likes · 6 min read
Resolving Chinese Character Encoding Issues in Git on Windows
ITPUB
ITPUB
Jun 21, 2017 · Databases

Why MySQL Data Gets Garbled: A Step‑by‑Step Encoding Journey

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.

Character SetEncodingGBK
0 likes · 5 min read
Why MySQL Data Gets Garbled: A Step‑by‑Step Encoding Journey
MaGe Linux Operations
MaGe Linux Operations
Jun 18, 2017 · Fundamentals

Demystifying Python Encoding: From ASCII to Unicode and UTF‑8

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.

ASCIIEncodingGBK
0 likes · 10 min read
Demystifying Python Encoding: From ASCII to Unicode and UTF‑8
ITPUB
ITPUB
Mar 16, 2017 · Databases

Why MySQL Shows Garbled Text and How to Fix It

This article explains the root causes of MySQL character‑set mojibake, illustrates the encoding/decoding steps during data insertion and retrieval, and provides reliable methods to prevent and repair corrupted text.

Data CorruptionEncodingMySQL
0 likes · 13 min read
Why MySQL Shows Garbled Text and How to Fix It
ITPUB
ITPUB
Sep 21, 2016 · Databases

Why the Same Chinese Text Becomes Garbled in Different Oracle Sessions – A Character Set Deep Dive

The article walks through a hands‑on experiment that shows how inserting the same Chinese string into an Oracle 10g database from clients using different character sets (ZHS16GBK vs AL32UTF8) leads to different stored encodings and results in garbled output, then explains the underlying conversion process and how to avoid it.

Character SetEncodingOracle
0 likes · 13 min read
Why the Same Chinese Text Becomes Garbled in Different Oracle Sessions – A Character Set Deep Dive
ITPUB
ITPUB
Jul 11, 2016 · Backend Development

How to Fix Chinese Character Garbling in JSP, Servlets, and Java Web Apps

This guide explains five common scenarios where Chinese characters appear garbled in Java web applications—JSP pages, servlets, POST form submissions, URI parameters, and properties files—and provides step‑by‑step configurations such as setting pageEncoding, response content type, request character encoding, Tomcat URIEncoding, and using native2ascii.

EncodingJSPJava
0 likes · 5 min read
How to Fix Chinese Character Garbling in JSP, Servlets, and Java Web Apps
21CTO
21CTO
Feb 21, 2016 · Fundamentals

Why Base64 Encoding Matters: Principles, PHP Implementation, and Real‑World Uses

This article explains the fundamentals of Base64 and Base64‑URL encoding, shows PHP functions for encoding and decoding, illustrates the encoding process with examples, and explores practical applications such as data URLs, MIME email attachments, and common pitfalls to avoid.

Base64Data URLsEncoding
0 likes · 11 min read
Why Base64 Encoding Matters: Principles, PHP Implementation, and Real‑World Uses
Architect
Architect
Feb 21, 2016 · Fundamentals

Understanding Base64 Encoding: Principles, Implementation, and Applications

This article explains the principles of Base64 encoding, provides PHP implementations for URL-safe variants, illustrates how binary data is transformed into text, and discusses common use cases such as data URLs and MIME while warning against misuse for security purposes.

Base64Data TransmissionEncoding
0 likes · 10 min read
Understanding Base64 Encoding: Principles, Implementation, and Applications
ITPUB
ITPUB
Jan 22, 2016 · Fundamentals

Mastering Python Encoding Errors with Custom Error Handlers

This article explains Python's two-step encoding conversion, the built‑in error handling options for decode/encode, and how to register custom error handlers to gracefully process mixed‑encoding text and avoid UnicodeDecodeError exceptions.

Custom DecoderEncodingUnicode
0 likes · 4 min read
Mastering Python Encoding Errors with Custom Error Handlers
21CTO
21CTO
Jan 4, 2016 · Fundamentals

Why Chinese Text Gets Garbled and How to Fix It: A Deep Dive into Encoding Standards

This article explains why Chinese characters often appear as garbled text on Windows and Linux, introduces the history and hierarchy of Chinese encoding standards such as GB2312, GBK, GB18030 and Unicode, compares ASCII, UTF‑8/16/32, shows practical command‑line experiments, and offers guidance for handling Chinese text in C and Python programs.

CEncodingGB2312
0 likes · 25 min read
Why Chinese Text Gets Garbled and How to Fix It: A Deep Dive into Encoding Standards