Re: string of rich text (rtf) tags to rtfData
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