Articles in Encoding & Text category

Browse all Encoding & Text articles on QubitTool. Explore in-depth tutorials, practical how-to guides, best practices and developer tips that help you understand key concepts, solve real problems, and get more out of our free online tools. New posts are added regularly, so check back often for the latest Encoding & Text insights.

13 articles in total

Base64 Encoding: RFC 4648, the BaseN Family, and Constant-Time Decoding

A rigorous treatment of Base64 from first principles: the mathematical basis for the 64-character alphabet (2⁶ = largest power-of-two mapping to printable ASCII), RFC 4648 canonical specification, the BaseN encoding family (Base16 through Base85 with size/alphabet trade-offs), streaming encoder and decoder state machines, MIME line-wrapping rules, PEM format anatomy, constant-time decoding for cryptographic contexts, SIMD-accelerated lookup tables, and production boundary advice for JWTs, data URLs, and HTTP Basic Auth.

Character Encoding Deep Dive: ASCII, Unicode & UTF-8

A rigorous guide to character encoding: distinguish code points from bytes, compare ASCII, Unicode, UTF-8 and UTF-16, debug mojibake, escape HTML in the correct context, and convert Unicode text without corrupting non-ASCII characters.

Data URLs: Syntax, Security, Caching & Performance

Use Data URLs deliberately. This guide covers RFC 2397 syntax, percent and Base64 encoding, MIME and charset handling, opaque origins, CSP and navigation risks, cache trade-offs, size measurement, Blob URLs, and safe browser/server examples.

Bcrypt Password Hashing Guide: Cost Factor & Security (2026)

Learn how bcrypt password hashing works, calibrate its cost factor on production hardware, read the 60-character hash structure, and compare bcrypt with Argon2id and scrypt using Node.js, Python, Java, and Go.

Markdown Syntax in Practice【2026】: CommonMark, GFM, and Safe Rendering

A practical, standards-aware Markdown guide. Learn CommonMark core syntax, GFM extensions, flavor detection, headings, links, images, tables, code, HTML, math, Mermaid, accessibility, sanitization, and why Markdown-to-HTML conversion is not automatically lossless or safe.

Number to Words: Rules, Currency Precision, and Safe Code

A practical number-to-words guide covering English and Chinese conventions, regional check formats, exact currency handling, validation, and tested JavaScript and Python implementation patterns.

QR Code Internals: Masking Algorithms, Reed-Solomon over GF(2⁸), and the Scanner Pipeline

A technical deep-dive into QR Code internals covering the ISO/IEC 18004 encoding pipeline (mode selection, data placement serpentine path, masking penalty scoring), Reed-Solomon error correction over GF(2⁸) with generator polynomial construction, the 8 mask patterns and their evaluation functions, QR Code security threats (QRLjacking, phishing overlays, URL injection), Micro QR and rMQR variants, and how scanner image-processing pipelines locate and decode symbols from camera frames.

Text Processing Engineering: Unicode Segmentation, Locale-Aware Case Mapping, and Readability Metrics

A technical deep-dive into text processing algorithms covering Unicode text segmentation (UAX #29 grapheme cluster, word, and sentence boundaries), locale-aware case mapping (Turkic I problem, Greek sigma, German ß), readability scoring models (Flesch-Kincaid, Coleman-Liau, their mathematical foundations and limitations), slug generation with proper Unicode NFKD transliteration, and number-to-words systems across languages (short/long scale, grammatical agreement).

Geohash Explained【2026】- GPS Encoding and Spatial Query Guide

Learn how Geohash encodes latitude and longitude into hierarchical grid keys. This guide explains precision, boundary cases, neighbor-cell queries, database indexing, and why exact distance or spatial predicates are still required.

URL Encoding: Why Context Determines What You Encode

A standards-grounded guide to URL percent-encoding covering RFC 3986 URI component grammar, reserved vs unreserved character sets, the UTF-8 encoding pipeline for non-ASCII, the critical difference between application/x-www-form-urlencoded and RFC 3986, double-encoding vulnerabilities, URL normalization for comparison, and cross-language API behavior in JavaScript, Python, Go, and Java.

Character Encoding Engineering: UTF-8 Self-Synchronization, Unicode Normalization Forms, and Encoding Security

A technical deep-dive into character encoding covering UTF-8's design properties (self-synchronization, prefix-free codes, ASCII compatibility, byte-order independence), Unicode normalization forms (NFC/NFD/NFKC/NFKD) and their security implications, encoding attack vectors (overlong UTF-8 sequences, homoglyph attacks, bidirectional override exploits), the CJK encoding wars and codepage legacy, MySQL utf8 vs utf8mb4, Python str vs bytes boundary, and the WHATWG Encoding Standard that governs web platform behavior.