• 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: sebi <email@hidden>
  • Date: Wed, 1 Sep 2010 14:45:24 +0200

On 01.09.2010, at 12:25, Alastair Houghton wrote:

> 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).

But I _did_ open it with NSUTF8StringEncoding and still it looked like an UTF-8 encoded file openend with some wrong single-byte encoding, that's what puzzled me.
However, the server guy fixed something on his side and now it works.
*cross fingers*

Thanks and regards,
Sebastian Mecklenburg

_______________________________________________

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

References: 
 >NSUTF8StringEncoding and umlauts (From: sebi <email@hidden>)
 >Re: NSUTF8StringEncoding and umlauts (From: Alastair Houghton <email@hidden>)

  • Prev by Date: [iPhone] Breaking content of NSMutable array into two arrays.
  • Next by Date: Re: sharing file descriptors to an NSTask
  • Previous by thread: Re: NSUTF8StringEncoding and umlauts
  • Next by thread: Dragging the window its goes to top of the screen.
  • Index(es):
    • Date
    • Thread