Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

String "\u1110" getting converted to "?"

Tags:

java

string

When I am trying something below code:

String x = "\u1110";
System.out.println("value of x ="+x);

output :

value of x =?
  1. Why output is coming like this ?
  2. I would like to get the output same as \u1110 ?
  3. How it is representing in String pool whether \u1110 or ?.
like image 548
Md Faraz Avatar asked Mar 31 '26 20:03

Md Faraz


1 Answers

The String (and String pool) contains "ᄐ" (Unicode Character 'HANGUL CHOSEONG THIEUTH' (U+1110)). But, to answer your first question, your console doesn't (apparently) have a glyph for that.

like image 111
Elliott Frisch Avatar answered Apr 03 '26 10:04

Elliott Frisch



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!