FROM : Daniel Child
DATE : Fri Jan 11 04:22:28 2008
Hi,
I am trying to build a generic parser for various files I expect to
encounter. To get the file in the form of a string, I was going to use:
NSString *fileAsString = [[NSString alloc] initWithContentsOfFile:
sourcePath
encoding: NSUTF8StringEncoding
error: &error];
That works assuming the encoidng is UTF8. But what if it is Big 5 or
GuoBiao? I couldn't find an equivalent encoding in
the documentation.
Thanks.
Daniel
DATE : Fri Jan 11 04:22:28 2008
Hi,
I am trying to build a generic parser for various files I expect to
encounter. To get the file in the form of a string, I was going to use:
NSString *fileAsString = [[NSString alloc] initWithContentsOfFile:
sourcePath
encoding: NSUTF8StringEncoding
error: &error];
That works assuming the encoidng is UTF8. But what if it is Big 5 or
GuoBiao? I couldn't find an equivalent encoding in
the documentation.
Thanks.
Daniel
| Related mails | Author | Date |
|---|---|---|
| Daniel Child | Jan 11, 04:22 | |
| Aki Inoue | Jan 11, 08:08 |






Cocoa mail archive

