This "AscHexChrUTF8" Action block makes various conversions between CHAR, Ascii, hexadecimal and UTF-8.
When entering:
• Chr: (1-character long string) you'll get its Ascii code
• Hex: (2-character long string, from 20 to FF) you'll get corresponding string character
• UTF8: (string of the form =HH...=HH, where HH are Hex numbers) you'll get decoded UTF-8 string
• Asc: (with 32 ≤ integer ≤ 255) you'll get corresponding character
Hint: if Hex begins with hash sign (#) followed by any number of hexadecimal characters (0 to 9 and A to F), you'll get the decimal value of this hexadecimal number.
If you happen to enter several values among these 4 input variables, the conversion will be made in the following order (first correct value met):
Chr → Hex → UTF8 → Asc
Letters (A to F) for hexadecimal numbers are case INsensitive
Enjoy!
When entering:
• Chr: (1-character long string) you'll get its Ascii code
• Hex: (2-character long string, from 20 to FF) you'll get corresponding string character
• UTF8: (string of the form =HH...=HH, where HH are Hex numbers) you'll get decoded UTF-8 string
• Asc: (with 32 ≤ integer ≤ 255) you'll get corresponding character
![Light bulb :bulb: 💡](https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/1f4a1.png)
![Information :information_source: ℹ️](https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/2139.png)
Chr → Hex → UTF8 → Asc
![Information :information_source: ℹ️](https://cdn.jsdelivr.net/joypixels/assets/6.6/png/unicode/64/2139.png)
Enjoy!