I have an NSURL object to an text file, but the simple reader method of NSString is deprecated. Now, there's this complex one:
+ (id)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error
How can I provide the correct encoding here? I have an text file which I created in Smultron and edited in Xcode. Is there a way to make sure that it fits the NSUTF8StringEncoding? Can Xcode convert that to UTF8 for me?