Re: [newbie] Cocoa UI and UTF-8
Re: [newbie] Cocoa UI and UTF-8
- Subject: Re: [newbie] Cocoa UI and UTF-8
- From: Yvon Thoraval <email@hidden>
- Date: Tue, 12 Jul 2005 12:55:20 +0200
Le 12 juil. 05 à 12:06, j o a r a écrit :
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>
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.
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.
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.
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?
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)
strings are always tied to a given encoding, even us-ascii is an
encoding.
Yvon
_______________________________________________
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