V
V
Vlad2019-10-31 15:34:41
Node.js
Vlad, 2019-10-31 15:34:41

How to convert text to encoding 36 and back?

To get a 36 digit code, I use: How can I now get "A" from the received "1t " ?
let c = "A".charCodeAt(0).toString(36); // 1t

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stockholm Syndrome, 2019-10-31
@TRen208

String.fromCharCode(parseInt(c, 36));

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question