Text to HEX
Represent the UTF-8 bytes of a string with two hexadecimal digits per byte.
Represent the UTF-8 bytes of a string with two hexadecimal digits per byte.
How to use
- Use Café, including the accent on é, as a test with both single-byte and multibyte characters.
- Convert it to hex and read the compact result as pairs: 43 61 66 c3 a9.
- Match the first three pairs to C, a and f and the last two to é.
Worked example
Input
CaféExpected result
436166c3a9Check the result
The output should be 436166c3a9.