On Tue, Sep 2, 2008 at 7:29 PM, Waqar Malik <[EMAIL PROTECTED]> wrote: > I am converting UTF8 string "Rø" to NSString using stringWithUTF8String: I > get nil as a return value: > > (gdb) p utf8_str > $1 = "R\303", '\000' <repeats 253 times>
That is not a valid UTF-8 string. The UTF-8 encoding of "Rø" would be "R\303\270" (that is, you're missing a byte). > (gdb) po theString > Cannot access memory at address 0x0 > > Is there a canonical way to convert wchat_t to NSString? -- Clark S. Cox III [EMAIL PROTECTED]
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]