• 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
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


  • Subject: Re: ISO 8859-15 (Latin 9) Euro symbol and more
  • From: Chuck Soper <email@hidden>
  • Date: Sat, 24 Jul 2004 13:49:42 -0700

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.


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

  • Prev by Date: Re: debugging OCUnit tests with XCode
  • Next by Date: Re: ISO 8859-15 (Latin 9) Euro symbol and more
  • Previous by thread: Re: ISO 8859-15 (Latin 9) Euro symbol and more
  • Next by thread: Re: ISO 8859-15 (Latin 9) Euro symbol and more
  • Index(es):
    • Date
    • Thread