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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to