简体   繁体   中英

How to combine unicode characters?

Say I have a character "a" which I need to combine with a symbol ( ̌ ) which I have in form of a hex value "030c".

What do you think would be the best way to combine them?

PS Thanks, "a\̌" does give â in logcat, but on android itself, it just shows a blank square. Is there a way to fix it without having the users to install additional fonts?

"a\u030c" or "\u01ce", the latter being the a-caron ǎ.

如果您的意思是字符串文字,那么

String str = "a\u030c";

You should not hard-code your own mapping tables.

What you need is this: http://developer.android.com/reference/java/text/Normalizer.html

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