lib/cocoa/sugarcube-foundation/nsstring.rb in sugarcube-3.3.6 vs lib/cocoa/sugarcube-foundation/nsstring.rb in sugarcube-3.3.7

- old
+ new

@@ -19,14 +19,10 @@ CFStringConvertNSStringEncodingToEncoding(NSUTF8StringEncoding) ) end def unescape_url - CFURLCreateStringByReplacingPercentEscapes( - nil, - self, - "" - ) + self.stringByReplacingPercentEscapesUsingEncoding(NSUTF8StringEncoding) end def remove_accents # removes diacritics by using a lossy conversion ascii = self.dataUsingEncoding(NSASCIIStringEncoding, allowLossyConversion: true)