groue / GRMustache

Flexible and production-ready Mustache templates for MacOS Cocoa and iOS
http://mustache.github.com/
MIT License
1.44k stars 190 forks source link

stringByAddingPercentEscapesUsingEncoding is deprecated. #98

Closed groue closed 9 years ago

groue commented 9 years ago

From @pierlo, when compiling with Xcode 7GM:

GRMustache/src/classes/Services/StandardLibrary/GRMustacheURLLibrary.m:114:22:
warning: 'stringByAddingPercentEscapesUsingEncoding:' is deprecated: first
deprecated in iOS 9.0 - Use -stringByAddingPercentEncodingWithAllowedCharacters:
instead, which always uses the recommended UTF-8 encoding, and which
encodes for a specific URL component or subcomponent since each URL
component or subcomponent has different rules for what characters are
valid.
    string = [string stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

This should be easy to fix.

groue commented 9 years ago

This fix will ship with #100.