RTF to unicode conversion
RTF to unicode conversion
- Subject: RTF to unicode conversion
- From: Klaus Backert <email@hidden>
- Date: Mon, 4 Jun 2007 00:27:50 +0200
Hi, Roland,
Am 03.06.2007 um 23:32 schrieb Roland Silver:
John Stiles,
My copy of (Tiger) TextEdit has only four options for output file
format: Rich Text Format (RTF), HTML, Word Format, and Word XML
format. None of these produces a simple Unicode file (eg UTF-8)
without a lot of metatext.
I HAVE found a way to convert from RTF to UTF-8, however. Using the
app AbiWord, I can input an RTF file (e.g. foo.rtf), and save it as
"Encoded Text" with any of a variety of encodings, including
"Unicode UTF-8".
A fragment of text from the result (foo_enc.txt) appears to be
valid UTF-8:
rollos$ od -tx /foo
0000000 69 64 65 73 e2 80 94 69 6c 6c 69 73 0a 000000
i d e s EM DASH i l l i s LF
U+2014
--Roland Silver
may be you can use the following method:
In the TextEdit preferences there is an Open and Save tab, where you
can choose to save plain text files with a certain encoding, among
others UTF-8.
and/or:
You can convert your file in TextEdit with Format > Make plain text
and save it. For plain text files you can choose between several
encodings in the save panel (and you can edit the list of the
available encodings).
Cheers
Klaus
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden