Re: String encoding problem
Re: String encoding problem
- Subject: Re: String encoding problem
- From: Shaun Wexler <email@hidden>
- Date: Sun, 31 Aug 2003 06:00:28 -0700
On Aug 31, 2003, at 4:18 AM, Tito Ciuro wrote:
Hello,
I'm importing the following string from a text file:
103 Olifac N: 3
This string is stored in char* buffer, and when I convert it to an
NSString via:
NSString* string = [NSString stringWithUTF8String: buffer];
string becomes nil. I'm using stringWithUTF8String because the import
file contains accents. Any idea why this is failing?
How about:
NSString *string = [NSString stringWithUTF8String:(const
char*)&buffer];
^
;)
--
Shaun Wexler
MacFOH
http://www.macfoh.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.