小數到文本

輕鬆將十進位表示轉換為文本

轉換器工具

0 characters

Enter decimal values to convert to text. Choose between UTF-8 (supports all characters) and ASCII (only 128 characters). Specify if decimal values are separated by spaces and whether to ignore invalid values.

換算表:

十進位值 Character

關於十進位到文本的轉換

文本編碼

文字字元在計算機中由數位表示。不同的編碼系統對字元使用不同的數位:

ASCII

The ASCII (American Standard Code for Information Interchange) encoding uses 7 bits to represent 128 characters, including English letters (both uppercase and lowercase), digits, and common punctuation symbols. Each ASCII character can be represented by a unique number between 0 and 127.

UTF-8

UTF-8 是一種可變長度字元編碼,可以表示 Unicode 標準中的每個字元。它為每個字元使用 1 到 4 個字節。UTF-8 向後相容 ASCII,這意味著前 128 個 UTF-8 字元與 ASCII 相同。

轉換過程

將 decimal 轉換為 text 涉及以下步驟:

  1. 將 decimal input 解析為單個值,考慮它們是否用空格分隔。
  2. Convert each decimal value to its corresponding character using the chosen encoding (ASCII or UTF-8).
  3. 組合字元以形成最終的文字字串。

範例:將十進位 「72 105」 轉換為文字

第 1 步:分隔十進位值:

72 和 105

Step 2: Convert each decimal value to a character (ASCII):

72 → H

105 → i

第 3 步:組合字元:

Hi

使用說明

  • 每個十進位值都應是介於 0 和 255 之間的有效整數。
  • When using ASCII encoding, any decimal value outside the 7-bit ASCII range (0-127) will be converted to a question mark (?).
  • UTF-8 編碼支援所有 Unicode 字元,包括特殊符號、表情符號和非英語語言中的字元。
  • 一些十進位值可能表示不可列印的字元,這些字元將顯示為空格或特殊符號。

Related Tools