• 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: How to convert an NSString to
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to convert an NSString to


  • Subject: Re: How to convert an NSString to
  • From: Igor Elland <email@hidden>
  • Date: Wed, 07 Aug 2013 09:19:04 +0200

Hi,

Have you tried:

[@"Ich möchte am Wettbewerb teilnehmen" stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];

Granted, this will also replace the ö with its percent escaped variant, which you probably want anyway.

Best,
Igor Elland

On Aug 6, 2013, at 1:45 PM, Ronald Hofmann <email@hidden> wrote:

> Hi all,
> I need to convert a normal:
> NSString * string = @"Ich möchte am Wettbewerb teilnehmen"
>
> to something like this:
> NSString * string = @"Ich möchte am Wettbewerb teilnehmen"
>
> I don´t want to do this manually.
>
> Any clues how to do it with Objective-C ?
>
> Greetings from Switzerland, Ronald Hofmann
> ---
>
>
>
> _______________________________________________
>
> 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

_______________________________________________

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: How to convert an NSString to
      • From: Tamas Nagy <email@hidden>
References: 
 >How to convert an NSString to (From: Ronald Hofmann <email@hidden>)

  • Prev by Date: Re: Mixing Obj-C and C "methods"
  • Next by Date: Re: Synchronous Serial Port Protocol messaging With NSOperationQueue/GCD
  • Previous by thread: How to convert an NSString to
  • Next by thread: Re: How to convert an NSString to
  • Index(es):
    • Date
    • Thread