Re: Non-standard Cocoa RTF Unicode encoding?
Re: Non-standard Cocoa RTF Unicode encoding?
- Subject: Re: Non-standard Cocoa RTF Unicode encoding?
- From: Charles Jolley <email@hidden>
- Date: Tue, 09 Jul 2002 20:48:41 -0500
Hi Uli:
To my knowledge, MS-Word, et al contain the only widely used RTF engine that
produces the Unicode extensions reliably. MS and Apple RTF engines, perhaps
are the only widely used engines that really understand the Unicode
extensions. For the most part, the best way to remain compatible is to use
the "old-style" approach defined by RTF which, incidentally, does not
require the user have any particular font installed on his system, only that
his reader can handle the designated charset.
And that is the rub with Apple RTF. For some reason Apple uses its own
charset designations for Mac OS encodings formats. I'm not sure why it does
this because there are equivalents for every languages defined by the RTF
spec (see the rtfdefs.h file I sent you.)
The absolute most compatible way to handle foreign language characters in
RTF, as I understand it, is to emit using the charset approach (and unicode
as well, if you like) and use the encodings defined in rtfdefs, NOT the Mac
OS encodings. Since the Apple text system is all Unicode anyway, you have
to do the same amount of work for either approach. This should allow, for
example, Czech characters to be read on a Windows box without needing any
additional script converters.
But maybe I'm off my rocker here. All my conclusions are mostly what I have
inferred from looking at how other RTF engines out there do it.
-C
On 7/9/02 2:48 PM, "Uli Zappe" <email@hidden> wrote:
>
Well, if you have to install script converters on Windows just to
>
be able to read something written in MacOS, while with a Unicode
>
encoding you would not need do this, I think an argument can be
>
made that this non-Unicode encoding IS in fact obsolete.
>
>
Maybe the company that got rid of serial ports, floppies etc.
>
first, should also be the first company that consequently uses
>
Unicode when *writing* textual data?
>
>
Bye
>
Uli
_______________________________________________
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.