Re: How to convert an NSString to
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