Re: [Q] What encoding method can be automatically detected?
Re: [Q] What encoding method can be automatically detected?
- Subject: Re: [Q] What encoding method can be automatically detected?
- From: JongAm Park <email@hidden>
- Date: Thu, 01 Feb 2007 09:18:31 -0800
Ah... To me, it looked like that the explanation applied to the
stringWithContentsOfFile: not
stringWithContentsOfFile:usedEncoding:error:
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/clm/NSString/stringWithContentsOfFile:usedEncoding:error:>
Thank you for the information.
Ricky Sharp wrote:
On Thursday, February 01, 2007, at 10:56AM, "JongAm Park" <email@hidden> wrote:
Ricky Sharp wrote:
The docs on that API mention that encodings are only returned when the file contains BOMs. Now, then UTF-8 BOMS are optional, so that older method would probably not be able to detect UTF-8 files lacking BOMs.
Is it documented? I read
http://developer.apple.com/documentation/Cocoa/Conceptual/Strings/Articles/readingFiles.html#//apple_ref/doc/uid/TP40003459,
and
http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/clm/NSString/stringWithContentsOfFile:usedEncoding:error:,
but I don't see it....
I found the deprecated API here:
<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/DeprecationAppendix/AppendixADeprecatedAPI.html>
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden