• 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: NSString looses Umlaute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString looses Umlaute


  • Subject: Re: NSString looses Umlaute
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 22 Dec 2011 13:40:41 +0000

On 22 Dec 2011, at 09:59, Alexander Reichstadt wrote:

> Thanks, it works. The following solved the problem, where theChoice is a URL to a local file from an NSOpenPanel:
>
>        NSData *theData = [NSData dataWithContentsOfURL:theChoice];
>        NSString *theContent = [[NSString alloc] initWithData:theData encoding:
>                                CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingDOSLatin1)
>                                ];

You can initialise a string directly from the contents of a URL you realise, right? Or are you saying that doesn't work, but this technique somehow does?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

  • Follow-Ups:
    • Re: NSString looses Umlaute
      • From: Alexander Reichstadt <email@hidden>
References: 
 >NSString looses Umlaute (From: Alexander Reichstadt <email@hidden>)
 >Re: NSString looses Umlaute (From: Ben Kennedy <email@hidden>)
 >Re: NSString looses Umlaute (From: Alexander Reichstadt <email@hidden>)
 >Re: NSString looses Umlaute (From: vincent habchi <email@hidden>)
 >Re: NSString looses Umlaute (From: Alexander Reichstadt <email@hidden>)
 >Re: NSString looses Umlaute (From: Vincent Habchi <email@hidden>)
 >Re: NSString looses Umlaute (From: Alexander Reichstadt <email@hidden>)
 >Re: NSString looses Umlaute (From: Jean-Daniel Dupas <email@hidden>)
 >Re: NSString looses Umlaute (From: Alexander Reichstadt <email@hidden>)

  • Prev by Date: Re: Debugging hints
  • Next by Date: Re: Debugging hints
  • Previous by thread: Re: NSString looses Umlaute
  • Next by thread: Re: NSString looses Umlaute
  • Index(es):
    • Date
    • Thread