iOS上的FacebookDisplayName与德语变音符号 [英] FacebookDisplayName on iOS with german umlauts

查看:346
本文介绍了iOS上的FacebookDisplayName与德语变音符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Facebook iOS集成和我的测试Facebook应用程序一切正常。现在,在我将facebook应用程序ID和显示名称更改为实时Facebook应用程序后,我收到错误102

I have a facebook iOS integration and with my test facebook app everything worked fine. Now after I changed the facebook app id and display name to the live facebook app I get the error 102


无法验证应用程序,因为应用程序名称不匹配。请检查对话框配置的应用程序名称

"Failed to authenticate the application because of app name mismatch. Please check the application name configured by the dialog"

Facebook应用程序显示名称有德语变音符号:ö
我认为这是问题所在。
刚刚发现这个问题: Facebook IOS App DisplayName和德国元音Ublauts

The facebook app display name has a german umlaut: ö I think this is the problem. Just found this question: Facebook IOS App DisplayName and German Umlauts

推荐答案

自己找到解决方案。
不同的utf8字符表示形式的问题结果以及字符串比较中产生的差异。
我的解决方案:

Found the solution by my self. The problem results of the different utf8 character representation and the resulting difference in a string comparison. My solution:

[FBSettings setDefaultDisplayName:[[FBSettings defaultDisplayName] precomposedStringWithCanonicalMapping]];

这篇关于iOS上的FacebookDisplayName与德语变音符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆