Re: [newbie] Cocoa UI and UTF-8
Re: [newbie] Cocoa UI and UTF-8
- Subject: Re: [newbie] Cocoa UI and UTF-8
- From: j o a r <email@hidden>
- Date: Tue, 12 Jul 2005 12:06:25 +0200
On 12 jul 2005, at 11.54, Yvon Thoraval wrote:
i don't understand what you've said about "NSStrings [] aren't tied
to any one encoding".
i know that if i use in an NSRunALertPanel a string written like
that :
@"Blablablah with accentuated characters éèùà"
if the file ("MyDocument.m") is encoded in macOS Roman ==> NO prob
if the same file is encoded in UTF-8 and i use :
[NSString stringWithUTF8String:"Blablablah with accentuated
characters éèùà"]
It's incorrect to attempt to create constant ObjC strings out of
anything that's not 7-bit ASCII (see ObjC PDF). You can find a lot
more in the list archives. This is my favorite:
<http://www.cocoabuilder.com/archive/message/cocoa/2005/3/30/131791>
no prob also, THEN, i think their is a default encoding "MacOS
Roman" for the UI
** now for output **
suppose now the reverse, i'm reading an NSTextField, from my
experience again, default encoding is MacOS Roman
How do you come to that conclusion?
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden