ตัวแปลง escape Unicode

แปลงอักขระนอก ASCII เป็นรูปแบบ \uXXXX ที่ย้ายได้ หรือถอดลำดับกลับเป็นข้อความอ่านง่าย มีประโยชน์เมื่อฝัง unicode ในไฟล์ config JSON หรือโค้ด

สูตร
character → \uXXXX (4 hex digits) · code points above U+FFFF use a surrogate pair

คำถามที่พบบ่อย

รูปแบบ escape ใดที่ถูกสร้าง?
อักขระแต่ละตัวกลายเป็น \u ตามด้วยรหัสฐานสิบหก 4 หลัก อักขระนอก BMP ถูกแยกเป็นคู่ surrogate สูง/ต่ำ

Embed this calculator on your site

Cite this page

About these results

Every calculation on this page runs locally in your browser using published, standard formulas — nothing you enter is sent to a server. Results are estimates for planning purposes and can differ from real-world conditions; always follow your local building code and the advice of a qualified professional for final decisions. You can read more about who builds and maintains these tools on our About page. เกี่ยวกับเรา MateCalc.

เครื่องคิดเลขที่เกี่ยวข้อง