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