• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Non-standard Cocoa RTF Unicode encoding?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Non-standard Cocoa RTF Unicode encoding?


  • Subject: Re: Non-standard Cocoa RTF Unicode encoding?
  • From: Aki Inoue <email@hidden>
  • Date: Sun, 7 Jul 2002 20:51:39 -0700

Uli,

Still, I have absolutely no idea how I could map the RTF setting \fcharset80 to one of the encoding constants mentioned there.
Oh, it is indeed an undocumented specification, but it is consistent.

The charset value can be derived by adding the script id value to the base MacRoman value 77.

So, MacJapanese is 78, MacTraditionalChinese is 79, and MacKorean is 80, and so on.
Both Cocoa and MS RTF reader/writer use this convention.

Aki

On 2002.7.7, at 03:44 PM, Uli Zappe wrote:

I wrote:
though I haven't found what CFString function exactly would actually do a conversion when I had a first look at Apple's String Services documentation

I've found the relevant docs now, so this is clear to me now, thanks again!

Of course, the crucial question remains:
I found
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/ Headers/CFStringEncodingExt.
h which indeed contains constants for a lot of different encodings.

Still, I have absolutely no idea how I could map the RTF setting \fcharset80 to one of the encoding constants mentioned there.

:-/

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.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Non-standard Cocoa RTF Unicode encoding?
      • From: Ondra Cada <email@hidden>
    • Re: Non-standard Cocoa RTF Unicode encoding?
      • From: Uli Zappe <email@hidden>
    • Re: Non-standard Cocoa RTF Unicode encoding?
      • From: Uli Zappe <email@hidden>
References: 
 >Re: Non-standard Cocoa RTF Unicode encoding? (From: Uli Zappe <email@hidden>)

  • Prev by Date: NSBundle Classes
  • Next by Date: Re: Non-standard Cocoa RTF Unicode encoding?
  • Previous by thread: Re: Non-standard Cocoa RTF Unicode encoding?
  • Next by thread: Re: Non-standard Cocoa RTF Unicode encoding?
  • Index(es):
    • Date
    • Thread