Decoding CJK String Length and Display Width in Java
Java stores strings internally using UTF-16 encoding, where String.length() returns the number of 16-bit code units. While most common CJK characters occupy a single code unit, their visual representaiton in monospaced terminals or grid interfaces typically spans two horizontal cells. Consequently, one Chinese character functions as the equival ...
Posted on Fri, 05 Jun 2026 18:01:01 +0000 by asolell
Handling Character Encoding Issues When Using mysqlbinlog with binlog_format=ROW
In MySQL, the binary log format (binlog_format) can be set to STATEMENT, ROW, or MIXED. The ROW format records every row change individually, which porvides higheer consistency and reliability. However, when using the mysqlbinlog utility to inspect a binary log written in ROW format, the output may appear garbled because the tool does not autom ...
Posted on Tue, 19 May 2026 16:03:12 +0000 by anonymousdude
Bypassing SQL Injection Defenses with Character Encoding Techniques in MySQL
Character encoding represents the fundamental mechanism for translating characters into byte sequences within computing environments. Different databases and systems may utilize varying encoding schemes such as UTF-8, ISO-8859-1 (Latin-1), and GBK. When exploiting SQL injection vulnerabilities, attackers can leverage these encoding differences ...
Posted on Sat, 09 May 2026 23:18:25 +0000 by anon