Non-standard Cocoa RTF Unicode encoding?
Non-standard Cocoa RTF Unicode encoding?
- Subject: Non-standard Cocoa RTF Unicode encoding?
- From: Uli Zappe <email@hidden>
- Date: Sun, 7 Jul 2002 01:44:07 +0200
Hi,
looking at TextEdit's behavior it seems that the Cocoa text system
uses a non-standard encoding for a specific range of (obviously not
all!) Unicode characters when *writing* RTF data.
For instance, if you take the Unicode character 0x85dd = (decimal)
34269 and insert it manually into an RTF source code as \u34269 (as
the RTF specs suggest), TextEdit will display the correct
character. However, if you copy this character from the TextEdit
document window, paste it into a new document and save this new
document, the character will be encoded as \'e7\'dd in the RTF
source, i.e. as a sequence of two hex-defined characters. I
couldn't find anything about this kind of behavior in the RTF specs
(
http://msdn.microsoft.com/library/en-
us/dnrtfspec/html/rtfspec.asp), so it seems non-standard to me.
Does anybody have an explanation for this behavior, and, more
important, know a way to translate \'e7\'dd back to \u34269?
Thanks for any insight!
Bye
Uli
________________________________________________________
Uli Zappe email@hidden
Lorscher Stra_e 5
http://www.ritual.org
D-60489 Frankfurt Fon: +49-700-ULIZAPPE
Germany Fax: +49-700-ZAPPEFAX
________________________________________________________
_______________________________________________
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.