Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ISO 8859-15 (Latin 9) Euro symbol and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ISO 8859-15 (Latin 9) Euro symbol and more



At 2:14 PM -0600 7/24/04, Nick Zitzmann wrote:
On Jul 24, 2004, at 1:37 PM, Bertrand Mansion wrote:

I have to use the euro symbol and other chars (& -> oe for example) which are
available in the ISO 8859-15 character set [1] but this encoding does not seem
to be available as a NSStringEncoding. Unfortunately, using Unicode is not an
option for me due to compatibility reasons with the underlying library.

I have also noticed that the Core Foundation seems to have more encodings
available than Cocoa. Is this an option ? If yes, what would be the best way to
convert from one to another ? Which other solutions could I try ?

Yes. CoreFoundation has a lot of string encodings that aren't present in the NSString.h header, but that doesn't mean there aren't more NSString encodings you can use. If you look at CFString.h, you'll notice that there's a function called CFStringConvertEncodingToNSStringEncoding() that bridges this gap. I haven't tried it with that particular encoding you've mentioned, but that would be the first thing I'd try.

kCFStringEncodingISOLatin9 is defined in CFStringEncodingExt.h
I think that you may have to use this NSString initializer:
- (id)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding with
NSProprietaryStringEncoding, but I really don't know. If you find a way to convert the encoding please post your results.
Chuck
P.S. Maybe someday I'll be able to search for it using mamasam (I paid my $30).
_______________________________________________
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.


References: 
 >Re: ISO 8859-15 (Latin 9) Euro symbol and more (From: Nick Zitzmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.