Decompress cross platform

Dar Scott dsc at swcp.com
Fri Oct 3 16:40:00 EDT 2003


On Friday, October 3, 2003, at 02:45 PM, J. Landman Gay wrote:

> I may be mis-remembering, but I thought character conversions were now 
> done on custom properties as well as on fields. Or was I dreaming > that?

 From the dictionary entry for ISOToMac():

> Revolution automatically translates text in fields and scripts, as 
> well as the names of custom properties, into the appropriate character 
> set when you move a stack from one platform to another. It is 
> therefore not necessary to translate them. However, the contents of 
> custom properties, since they may contain binary data, are not 
> translated automatically and must be translated if they contain 
> characters whose ASCII value is 128 or greater.
>

 From "Why... is a custom property garbled when switching platforms":

> However, text in custom properties is not converted between the ISO 
> and Macintosh character sets. This is because custom properties can 
> contain binary data as well as text, and converting them would garble 
> the data. If you plan to display the data in a custom property as 
> text, you must convert it yourself when you use the stack on another 
> platform.

So, my panic was premature.

Maybe the compressed htmlText could go into a custom property.

I don't think storing binary in fields is safe, be it crossplatform or 
not.

Dar Scott
panic prone




More information about the use-livecode mailing list