ผลต่างระหว่างรุ่นของ "UTF-16/UCS-2"

จากวิกิพีเดีย สารานุกรมเสรี
เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
JBot (คุย | ส่วนร่วม)
ย้อนการแก้ไขที่อาจเป็นการทดลอง หรือก่อกวนด้วยบอต ไม่ควรย้อน? แจ้งที่นี่
บรรทัด 6: บรรทัด 6:


== ตัวอย่าง ==
== ตัวอย่าง ==
{| class="wikitable"
|-
! รหัส
! ตัวอักษร
! ค่ารหัส UTF-16
! แบบแสดง*
|-
| 122 (hex 7A)
| Z ตัวเล็ก (อักษรลาติน)
| 007A
| z
|-
| 27700 (hex 6C34)
| น้ำ (ภาษาจีน)
| 6C34
| 水
|-
| 119070 (hex 1D11E)
| [[Clef|musical G clef]]
| D834 DD1E <!--this has been repeatedly changed to D874 by people forgetting about the subtraction step. Please don't do it again54. --><!--...em, is there a font that has the musical G clef? question by user:abdull) --><!--code 2001 probably has it but note that if you are on windows you need to do special setup to use non bmp characters i think the info is on the talk page of the code 2000 article or something like that-->
| &#119070;
|}

{| class="wikitable"
{| class="wikitable"
|-
|-

รุ่นแก้ไขเมื่อ 08:54, 14 กุมภาพันธ์ 2563

16 bit Unicode Transformation Format (UTF-16) เป็นการเข้ารหัสตัวอักษรสำหรับยูนิโคดในคอมพิวเตอร์ ซึ่งสามารถเข้ารหัสตัวอักษรในยูนิโคดได้ทั้งหมด โดยปกติแล้วแล้วหนึ่งตัวอักษรมีขนาด 16 บิตหรือ 2 ไบต์ ขึ้นอยู่กับวิธีการเข้ารหัสของเครื่อง

ตัวอย่าง

"水z𝄞" (น้ำ, z, G clef), ในการเข้ารหัสแบบ UTF-16
แบบการเข้ารหัส การเรียงลำดับไบต์ (byte order) ลำดับไบต์ (byte sequence)
UTF-16LE little-endian 34 6C, 7A 00, 34 D8 1E DD
UTF-16BE big-endian 6C 34, 00 7A, D8 34 DD 1E
UTF-16 little-endian, with BOM FF FE, 34 6C, 7A 00, 34 D8 1E DD
UTF-16 big-endian, with BOM FE FF, 6C 34, 00 7A, D8 34 DD 1E

แบบแสดงที่ท่านเห็นอาจไม่ถูกต้อง ขึ้นอยู่กับฟอนต์และซอฟต์แวร์ที่ท่านใช้

อ้างอิง

ดูเพิ่ม

แหล่งข้อมูลอื่น