Re: NSUTF8StringEncoding and umlauts
Re: NSUTF8StringEncoding and umlauts
- Subject: Re: NSUTF8StringEncoding and umlauts
- From: Alastair Houghton <email@hidden>
- Date: Wed, 1 Sep 2010 11:25:59 +0100
On 1 Sep 2010, at 10:21, sebi wrote:
> I load an utf-8 textfile from a server with
>
> [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&err]
>
> and non ascii characters are still not right, e.g. "ü" becomes "ÃŒ". is that a problem on my end or on the server side?
You're opening the file using the wrong encoding. The characters you mention are what UTF-8 looks like if you do that (and NSString works, by the way).
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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