简体   繁体   English

iOS / Swift中不受支持的(??)Unicode字符

[英]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 ). 我需要在我的应用程序中使用键盘扩展名才能插入此字符 (Unicode字符“带有右U+2C71 V, 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} . Swift本身或Xcode似乎都不是问题,因为我可以直接输入它或使用\\u{2C71} The problem may be iOS not accepting it as all I get on simulator is a ? 问题可能是iOS不接受它,因为我在模拟器上得到的只是一个? 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. 我不知道这是否与UTF-8、16等有关,或者iOS不会完全阻止此字符。

Thanks for reading. 谢谢阅读。

iOS default fonts (Helvetica for iOS 8 & San Francisco for iOS 9) simply doesn't seem to have this character. iOS默认字体(适用于iOS 8的Helvetica和适用于iOS 9的旧金山)似乎根本没有此字符。

You should probably find another font supporting the character. 您可能应该找到支持该字符的另一种字体。 @Shoaib suggested one ;) @Shoaib建议一个;)

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 ). 顺便说一下,FreeSerif字体( http://www.fonts2u.com/free-serif.font )支持此字符。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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