[Q] What encoding method can be automatically detected?
[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