> 検査 | デコード | 分析 <
// Unicodeコードポイント、エンコーディング、文字の詳細を検査
文字分析
任意のテキストを文字ごとに分析。
UTF-8/UTF-16表示
各文字の正確なバイト表現を表示。
ブロック検出
Unicodeブロックを自動検出して表示。
// UNICODEについて
Unicodeの仕組み:
Unicodeはすべての文字に固有のコードポイントを割り当てる世界標準です。
例:
"A" → U+0041, Decimal 65, UTF-8: 41, UTF-16: 0041
一般的な用途:
- >エンコーディング問題のデバッグ
- >不可視文字の検査
- >UTF-8/UTF-16バイト列の検証
- >Unicodeコードポイントの検索
- >絵文字のエンコーディング分析
>> よくある質問
Q: What is Unicode?
A: Unicode is a universal character encoding standard that assigns a unique code point to every character from every writing system.
Q: UTF-8 vs UTF-16?
A: UTF-8 uses 1-4 bytes and is ASCII-compatible. UTF-16 uses 2 or 4 bytes and is used by JavaScript and Windows.
Q: What is BMP?
A: The Basic Multilingual Plane (U+0000 to U+FFFF) contains the most commonly used characters.
Q: How many characters?
A: Unicode supports 1,114,112 code points. Over 149,000 are currently assigned.
Q: Code point vs character?
A: A code point is the numeric value (e.g., U+0041). Some visible characters use multiple code points.
// 他の言語
参考資料
結果の正しさをどう確認するか
以下の自動テストでこのツールを検証します。テスト例の名称は原文のまま掲載しています。
- Verification method
- Check UTF-8 and UTF-16 bytes, including BMP boundaries, supplementary characters and applicable endian/BOM fixtures.
- Comparison reference
- Node.js Buffer, with explicit expected values for other byte orders.
- Verification scope
- These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
-
text-reliability.test.js
- Unicode viewer: UTF-8 and UTF-16 bytes match Node Buffer across scalar boundaries
テスト対象は記載した例と境界条件です。すべての入力に対する証明ではありません。往復変換や同じライブラリによる確認は独立した検証ではありません。