瀏覽代碼

Replace deprecated percent encoding string transformation method

Ryan Olson 11 年之前
父節點
當前提交
44e428655a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Classes/Utility/FLEXUtility.m

+ 2 - 2
Classes/Utility/FLEXUtility.m

@@ -246,8 +246,8 @@
         // [a, 1]
         NSArray *components = [keyValueString componentsSeparatedByString:@"="];
         if ([components count] == 2) {
-            NSString *key = [[components firstObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
-            id value = [[components lastObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
+            NSString *key = [[components firstObject] stringByRemovingPercentEncoding];
+            id value = [[components lastObject] stringByRemovingPercentEncoding];
 
             // Handle multiple entries under the same key as an array
             id existingEntry = [queryDictionary objectForKey:key];