• 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: NSUTF8StringEncoding and umlauts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSUTF8StringEncoding and umlauts
      • From: sebi <email@hidden>
References: 
 >NSUTF8StringEncoding and umlauts (From: sebi <email@hidden>)

  • Prev by Date: NSUTF8StringEncoding and umlauts
  • Next by Date: Dragging the window its goes to top of the screen.
  • Previous by thread: NSUTF8StringEncoding and umlauts
  • Next by thread: Re: NSUTF8StringEncoding and umlauts
  • Index(es):
    • Date
    • Thread