• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] What encoding method can be automatically detected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[Q] What encoding method can be automatically detected? (From: JongAm Park <email@hidden>)
 >Re: [Q] What encoding method can be automatically detected? (From: Ricky Sharp <email@hidden>)
 >Re: [Q] What encoding method can be automatically detected? (From: JongAm Park <email@hidden>)
 >Re: [Q] What encoding method can be automatically detected? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: [Q] What encoding method can be automatically detected?
  • Next by Date: Re: [Q] What encoding method can be automatically detected?
  • Previous by thread: Re: [Q] What encoding method can be automatically detected?
  • Next by thread: Re: [Q] What encoding method can be automatically detected?
  • Index(es):
    • Date
    • Thread