• 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
[Q] What encoding method can be automatically detected?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] What encoding method can be automatically detected?


  • Subject: [Q] What encoding method can be automatically detected?
  • From: JongAm Park <email@hidden>
  • Date: Thu, 1 Feb 2007 06:28:37 -0800

According to Apple's document, it says that this method can determine encoding method used for the file whose file path is given.

	stringWithContentsOfFile:usedEncoding:error:

However, it can't determine if the content of a file is whether in Mac Roman, ISO Latin1, and so on.
However, if stringWithContentsOfFile:encoding:error is used with the Mac Roman encoding, it can open a file in ISO Latin1, etc.


So, it seems to me that the stringWithContentsOfFile:encoding:error can read from a file with the given encoding successfully, even though the real encoding method compatible to the given "encoding".
However for the stringWithContentsOfFile:usedEncoding:error it doesn't.


So.. can anyone tell me what encoding method the stringWithContentsOfFile:usedEncoding:error can detect?

Thank you.
_______________________________________________

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


  • Follow-Ups:
    • Re: [Q] What encoding method can be automatically detected?
      • From: Ricky Sharp <email@hidden>
    • Re: [Q] What encoding method can be automatically detected?
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: iCal stop responding after exception.
  • Next by Date: Re: Please can any one sugest or send me Email validation code.
  • Previous by thread: Re: iCal stop responding after exception.
  • Next by thread: Re: [Q] What encoding method can be automatically detected?
  • Index(es):
    • Date
    • Thread