請求到數據後有時候顯示爲亂碼,所以在收到請求後咱們加了強制轉成 utf-8,以下; json
+ (void)parseMimeType:(NSString **)mimeType andResponseEncoding:(NSStringEncoding *)stringEncoding fromContentType:(NSString *)contentType app
{ 編碼
if (!contentType) { spa
return; utf-8
} string
if ([contentType isKindOfClass:[NSString class]]) { io
if ([contentType hasPrefix:@"application/json"]) { class
contentType = @"application/json;charset=UTF-8";//吉盛項目,強制編碼 UTF-8 亂碼
} coding
}