RTF and Unicode

Toma Tasovac ttasovac at Princeton.EDU
Tue Jul 22 13:27:00 EDT 2003


On Utorak, Jul 22, 2003, at 20:53 Europe/Belgrade, Tuviah Snyder wrote:
>>
> RTF does support unicode text, but the unicode text is encoded a  
> multibyte
> and tagged with the appropriate language so other RTF readers can read  
> it.
> You should not need to encode the RTF file using UTF-8. Should be  
> enough to
> simply put the rtftext of field "suchandsuch" into url "blah.rtf"


That's what I was hoping for, but alas this does NOT happen.  Saving a  
UTF-8 encoded field with Cyrillic text as an rtf file produces garbage  
that looks like this if you open it in TextEdit:

a je, e aeo e o  aa   
e oeo a...

or like this if you open it in BBEdit:

{\rtf\mac  
{\colortbl\red0\green0\blue0;\red0\green0\blue128;\red0\green128\blue0;\ 
red0\green128\blue128;\red128\green0\blue0;\red128\green0\blue128;\red12 
8\green128\blue0;\red192\green192\blue192;\red128\green128\

Looks very interesting, but it's not exactly Cyrillic... :)

Toma


More information about the use-livecode mailing list