简体   繁体   中英

How do I combine unicode characters?

I am trying to print unicode characters in java console. The problem is I am trying to use Bengali character set and I need to combine 2 unicode characters together. I have no clue how to do so. For example: I can print ড and া separately. When combined this should turn into: ডা . that means the circular part should not be there anymore. But I really have no idea how to do so. I tried googling but couldn't find anything relevant :/

Just use double quotes in between. It works for me in IntelliJ and Eclipse without installing any other addons. Eg

System.out.println(myUnicodeChar1+""+myUnicodeChar2+""+myUnicodeChar3);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM