我有一个非常简单的任务:我从服务器获取作为字节数组的UTF-8字符串,我需要以大写形式显示该字符串中的所有符号。从这个字符串中,您实际上可以获得unicode表的任何符号。我知道如何在一行代码中做到这一点:NSString*upperStr=[[NSStringstringWithCString:utf8strencoding:NSUTF8StringEncoding]uppercaseString];在我看来,它适用于我检查过的所有符号。但我不明白:为什么我们需要方法uppercaseStringWithLocale?当我们使用unicode时,每个符号在unicode表中都有独特的