0
請幫助搜索字符串編碼。像這樣簡單的要求:Facebook iOS sdk搜索編碼
https://graph.facebook.com/search?q=max&type=user
作品不錯,芽當我嘗試在西里爾搜索:
https://graph.facebook.com/search?q=макс&type=user
我得空的結果。我應該使用什麼編碼?
請幫助搜索字符串編碼。像這樣簡單的要求:Facebook iOS sdk搜索編碼
https://graph.facebook.com/search?q=max&type=user
作品不錯,芽當我嘗試在西里爾搜索:
https://graph.facebook.com/search?q=макс&type=user
我得空的結果。我應該使用什麼編碼?
這裏是正確的編碼;我第一次忘記用加號替換空格。
searchString = [searchString stringByReplacingOccurrencesOfString:@" " withString:@"+"];
searchString = [searchString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];