简体   繁体   中英

Unsupported(??) unicode character in iOS/Swift

I'm fairly new to development and I've been having a real issue with this. I need the keyboard extension in my app to be able to insert this character (Unicode Character 'LATIN SMALL LETTER V WITH RIGHT HOOK', U+2C71 ). It doesn't appear to be an issue with Swift itself or Xcode as I can type it directly or use \\u{2C71} . The problem may be iOS not accepting it as all I get on simulator is a ? inside a square.

I've looked everywhere I could find, searched documentation on encoding and nothing seemed to make much sense to me for this particular case. Seems like it couldn't possibly be this complicated so it's probably just beyond me at the moment. I have no clue if this has anything to do with UTF-8,16,etc... or just that iOS won't take this character full stop.

Thanks for reading.

iOS default fonts (Helvetica for iOS 8 & San Francisco for iOS 9) simply doesn't seem to have this character.

You should probably find another font supporting the character. @Shoaib suggested one ;)

This issue belongs to font support. You have to find fonts that support your all required characters. BTW this character is supported in FreeSerif font ( http://www.fonts2u.com/free-serif.font ).

在此处输入图片说明

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