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 14:44:19 +0200
On 12 jul 2005, at 12.55, Yvon Thoraval wrote:
i don't agree with the above mentionned because saying "it isn't
safe to include utf-8 characters in source code" because modern
editors are able to take into account file's encoding.
It doesn't quite matter what that the editor can handle, now does it?
If anything, it's the capabilities of the compiler that matters. I'm
not sure if it's standardized or not how you should pass encoding
information for a file to the compiler. Perhaps it is. Not that it
matters much anyway, because this is a documented limitation of the
ObjC static string construction.
the question of localization is apart from that, in *.strings file
i want a human readable character set not the "\xe2\x80\x94" the i
want *.strings files encoded in utf-8.
The documentation states that strings files should be UTF-16 encoded.
localization is done at the end of a project, then, in the mean
time, for quick design, i need to put non-ascii chars into the
source code.
Do whatever you like - but realize that you will have to deal with
the consequences.
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?
because i know that, doing a transcoding from MacOS Roman to UTF-8
i get utf-8 right chars. (verified manually with an hex editor or
indirectly by the fact standard xml parser are satisfied)
Right, but HOW did you set up that test? Show us the code!
strings are always tied to a given encoding, even us-ascii is an
encoding.
The documentation states that NSString is implemented as an array of
Unicode characters.
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