+ 4

Unicode character’s

I wanted to write a console program which provides the Unicode code number for a character requested by the user. I got it - almost. Unfortunately not all characters can be seen. Can someone help and say why, respectively, how can this code be improved to be able to generate all (including eg. $, €, § etc.) characters? https://code.sololearn.com/cQ333QP28yva/?ref=app

23rd Dec 2019, 6:58 PM
JaScript
JaScript - avatar
5 Antworten
+ 1
Thanks for the support. I got it. The input coding must also be set to UTF8. And then it works with any characters that are typed directly on the keyboard 😀🎅🎁
24th Dec 2019, 4:27 PM
JaScript
JaScript - avatar
+ 1
Thanks to sneeze for this great idea. I've known that for a while. Before I published my program, I tried to implement it there as well. This is not compatible with my solution of the reverse search.
23rd Dec 2019, 10:18 PM
JaScript
JaScript - avatar
+ 1
It is possible to get the binary value. https://code.sololearn.com/cS12am7oXvwu //added your calculation to my code The question is how is the user going to input these characters.
23rd Dec 2019, 10:53 PM
sneeze
sneeze - avatar
+ 1
Yes, that's a qool solution sneeze. In this case but, the characters are declared first. My question was, how can it be solved if the input should be made directly from the keyboard? It was my goal.
24th Dec 2019, 9:30 AM
JaScript
JaScript - avatar