Re: extending NSString - (NSData *)dataUsingEncoding:(NSStringEncoding)encoding
Re: extending NSString - (NSData *)dataUsingEncoding:(NSStringEncoding)encoding
- Subject: Re: extending NSString - (NSData *)dataUsingEncoding:(NSStringEncoding)encoding
- From: Aki Inoue <email@hidden>
- Date: Fri, 31 Jan 2003 17:32:13 -0800
Nikolaus,
The following DOS code pages (in addition to Windows code pages) are
supported from 10.1 in CFString.
kCFStringEncodingDOSLatinUS (cp437)
kCFStringEncodingDOSGreek (cp737)
kCFStringEncodingDOSBalticRim (cp775)
kCFStringEncodingDOSLatin1 (cp850)
kCFStringEncodingDOSLatin2 (cp852)
kCFStringEncodingDOSTurkish (cp857)
kCFStringEncodingDOSIcelandic (cp861)
kCFStringEncodingDOSRussian (cp866)
kCFStringEncodingDOSThai (cp874)
kCFStringEncodingDOSJapanese (cp932)
kCFStringEncodingDOSChineseSimplif (cp936)
kCFStringEncodingDOSKorean (cp949)
kCFStringEncodingDOSChineseTrad (cp950)
You can convert CFStringEncoding to NSStringEncoding using
CFStringConvertEncodingToNSStringEncoding().
Aki
On 2003.1.31, at 12:43 PM, Dr. H. Nikolaus Schaller wrote:
Hi,
is there any method to extend the encodings recognized by - (NSData
*)dataUsingEncoding:(NSStringEncoding)encoding, i.e. adding new values
to NSStringEncoding and some way to put a plugin into the CFString
core?
I would like to process some Windows Code pages not recognized yet
(e.g. Code Page 437 aka MS-DOS).
Writing a category seems not to work as I don't know a transparent way
to call the original dataUsingEncoding method without writing a
subclass of NSString and using [super dataUsingEncoding:encoding];
Many thanks for any hints,
Nikolaus
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.