แปลง Binary ธรรมชาติ
=Text.FromBinary(#binary({72, 101, 108, 108, 111}))
Hello
แปลงค่า Binary เป็นข้อความ
Text.FromBinary ใช้สำหรับแปลงค่า Binary เป็นข้อความ โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัสอื่นๆ เช่น UTF-16 และ ASCII
=Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text
=Text.FromBinary(binary as nullable binary, optional encoding as nullable number) as nullable text
| Argument | Type | Required | Default | Description |
|---|---|---|---|---|
| binary | nullable binary | Yes | ค่า Binary ที่ต้องการแปลงเป็นข้อความ | |
| encoding | nullable number | Optional | BinaryEncoding.Utf8 | ประเภทการเข้ารหัส (ค่าเริ่มต้น UTF-8) |
อ่านเนื้อหาไฟล์ข้อความจาก Binary
ถอดรหัส Binary data ที่ได้จากแหล่งข้อมูลภายนอก
ประมวลผล Binary response จาก Web API
=Text.FromBinary(#binary({72, 101, 108, 108, 111}))
Hello
=Text.FromBinary(Text.ToBinary("Test"))
Test
=Text.FromBinary(File.Contents("data.txt"))
[เนื้อหาไฟล์]
Text.FromBinary ใช้สำหรับแปลงค่า Binary เป็นข้อความ โดยใช้การเข้ารหัส UTF-8 เป็นค่าเริ่มต้น รองรับการเข้ารหัสอื่นๆ เช่น UTF-16 และ ASCII