Unicode To Text Converter
Reverse Conversion
How This Converter Works
Outputs the UTF-16 code unit value of each JavaScript string position, separated by spaces, with a trailing space. Supplementary Unicode characters therefore produce two surrogate values.
Formula or rule
For i from 0 to input.length - 1, append input.charCodeAt(i) + a space.
Example
- Input
- A😀
- Calculation
- A has code unit 65; 😀 is represented by UTF-16 surrogate code units 55357 and 56832.
- Result
- 65 55357 56832