How can we show the ASCII values of UTF-8 standard in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can we show the ASCII values of UTF-8 standard in java?

I'm trying to pring ascii values from 2817 to 2928 bt the console of the sololearn only show question marks... https://code.sololearn.com/cy4vGpq1JDKg/?ref=app

18th Feb 2018, 3:50 AM
Rajesh Dehury
Rajesh Dehury - avatar
3 Answers
+ 5
Then may be SL compiler isn't supporting those characters. Online compilers are nowhere powerful than which we use in our systems!
18th Feb 2018, 4:12 AM
Harjeet Singh
Harjeet Singh - avatar
+ 3
values from 2817 does exist because my eclipse ide shows the characters after config preferences>workspace>textfile encoding to UTF-8.
18th Feb 2018, 4:10 AM
Rajesh Dehury
Rajesh Dehury - avatar
+ 2
https://code.sololearn.com/c8m6h85F2K53/?ref=app I only changed the range of loop from 65 to 90, and it's working fine. So, for the values from 2817 to 2928 are ? (question mark), may be because those values doesn't exists according to the ASCII standards.
18th Feb 2018, 4:06 AM
Harjeet Singh
Harjeet Singh - avatar