From: Joel VanderWerf Date: 2002-09-12T02:54:29+09:00 Subject: Re: [FXRuby] marshalling objects to the fox registry Pit Capitain wrote: ... > I don't know about Fox and its registry but you could try to avoid > null chars by using a base64 encoding for the marshalled strings, > something like > > s = [ Marshal.dump( my_object ) ].pack( 'm' ) > > These strings don't include null or other special characters. To get > the marshalled object back you would do > > my_object = Marshal.load( s.unpack( 'm' )[ 0 ] ) Thanks, Pit. What I did was to simply use '\1' and '\2' as entry and row delimiters in my two dimensional array of printable strings. But your idea is much more general.