Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.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
Objective c CLPlacemark.subthroway奇怪的字符?_Objective C_Ios_Geocoding - Fatal编程技术网

Objective c CLPlacemark.subthroway奇怪的字符?

Objective c CLPlacemark.subthroway奇怪的字符?,objective-c,ios,geocoding,Objective C,Ios,Geocoding,当注销或发送(使用RestKit发送到web服务)时,特别是CLPlacemark的SubThroughure属性奇怪的字符会出现在我预期的连字符位置 日志记录: NSLog(@"%@", placemark.subThoroughfare); 结果: 12- 我预计12-15岁。15号失踪 此外,当将SubThrougheare字符串发送到JSON服务时,我在请求中看到以下内容: 12â??15 15存在,但连字符被奇怪的字符替换 无法通过Google/SO找到解决方案,如有任何帮助,将

当注销或发送(使用RestKit发送到web服务)时,特别是CLPlacemark的SubThroughure属性奇怪的字符会出现在我预期的连字符位置

日志记录:

NSLog(@"%@", placemark.subThoroughfare);
结果:

12-
我预计12-15岁。15号失踪

此外,当将SubThrougheare字符串发送到JSON服务时,我在请求中看到以下内容:

12â??15
15存在,但连字符被奇怪的字符替换

无法通过Google/SO找到解决方案,如有任何帮助,将不胜感激

编辑: 记录到控制台的地址的更完整示例是:

 Placemark Address: 34–36 Friars Way, Eaton, Engla

注:当“Äì”替换连字符(-)时,最后2个字符也丢失(应为“England”)。我正在研究编码,但还没走多远。

结果表明,奇怪的字符是由于LLDB调试器无法正确显示Unicode字符…切换到GDB时,字符显示正确