ทศนิยมเป็นข้อความ

แปลงการแสดงทศนิยมเป็นข้อความได้อย่างง่ายดาย

เครื่องมือแปลง

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 แบบย้อนหลัง ซึ่งหมายความว่าอักขระ UTF-8 128 ตัวแรกจะเหมือนกับ ASCII

กระบวนการแปลง

การแปลงทศนิยมเป็นข้อความเกี่ยวข้องกับขั้นตอนต่อไปนี้:

  1. แยกวิเคราะห์อินพุตทศนิยมเป็นค่าแต่ละค่า โดยพิจารณาว่าคั่นด้วยช่องว่างหรือไม่
  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