• 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: string of rich text (rtf) tags to rtfData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string of rich text (rtf) tags to rtfData


  • Subject: Re: string of rich text (rtf) tags to rtfData
  • From: Sherm Pendley <email@hidden>
  • Date: Wed, 25 Oct 2006 09:49:31 -0400

On Oct 25, 2006, at 9:09 AM, Richard Salvatierra wrote:

One other question: To test for the presence of an rtf commented string I do the following. What is a better way?

Here's the file header as described in /usr/share/file/magic.

	0       string          {\\rtf          Rich Text Format data,
	>5      byte            x               version %c,
	>6      string          \\ansi          ANSI
	>6      string          \\mac           Apple Macintosh
	>6      string          \\pc            IBM PC, code page 437
	>6      string          \\pca           IBM PS/2, code page 850

That will give you the version of the RTF format used in the file, and the encoding it uses. Not sure if ANSI uses ASCII, an ISO-8859-* or UTF-* encoding, or something else.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ 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
References: 
 >string of rich text (rtf) tags to rtfData (From: Richard Salvatierra <email@hidden>)
 >Re: string of rich text (rtf) tags to rtfData (From: Fredrik Olsson <email@hidden>)
 >Re: string of rich text (rtf) tags to rtfData (From: Richard Salvatierra <email@hidden>)

  • Prev by Date: Leopard Early Starter Kit - sth worth paying for?
  • Next by Date: Reading the contents of an AudioFile
  • Previous by thread: Re: string of rich text (rtf) tags to rtfData
  • Next by thread: Re: string of rich text (rtf) tags to rtfData
  • Index(es):
    • Date
    • Thread