Re: How to convert an NSString to
Re: How to convert an NSString to
- Subject: Re: How to convert an NSString to
- From: Tamas Nagy <email@hidden>
- Date: Wed, 07 Aug 2013 09:21:49 +0200
Or if you just want to convert the spaces: string = [@"Ich möchte am Wettbewerb teilnehmen" stringByReplacingOccurrencesOfString:@" " withString:@" "];
On Aug 7, 2013, at 9:19 AM, Igor Elland <email@hidden> wrote:
> 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
_______________________________________________
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