Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/19.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift在localization.strings中使用unicode字符_Swift_Unicode_Nslocalizedstring - Fatal编程技术网

Swift在localization.strings中使用unicode字符

Swift在localization.strings中使用unicode字符,swift,unicode,nslocalizedstring,Swift,Unicode,Nslocalizedstring,我试图在本地化.strings文件中放入unicode字符。当我手动将标签的文本设置为“\u{F071}”时,字符会正确显示。当我在本地化文件中将该字符作为字符串的一部分时,unicode字符看起来就不像我想要的那样。是否有我可能缺少的编码设置?或者我们应该在本地化文件中没有unicode字符吗?您必须遵循本地化。字符串的unicode格式,例如: "your-key" = "\UF071"; 看。

我试图在本地化.strings文件中放入unicode字符。当我手动将标签的文本设置为“\u{F071}”时,字符会正确显示。当我在本地化文件中将该字符作为字符串的一部分时,unicode字符看起来就不像我想要的那样。是否有我可能缺少的编码设置?或者我们应该在本地化文件中没有unicode字符吗?

您必须遵循本地化。字符串的unicode格式,例如:

"your-key" = "\UF071";
看。