Strip a ™ character

JB sundown at pacifier.com
Wed Oct 1 11:35:55 EDT 2014


I am converting binary to hex and
this code is giving me a problem.

   replace return with empty in theData
   repeat with x = 1 to the len of theData -8 step 8
      put BaseConvert(char x to (x+7) of theData,2,16) into theConv
      put theConv after tData
   end repeat

The first thing I do is strip the returns.
It works good for a single line but for
some reason a hidden character is put
in the file where a retun was.  If I only
had one return and it is at the end of
the line when it is converted back to
ascii the return is replace with a ™.
It does not have the period after.

Does anyone know how to strip the ™ character?

John Balgenorth


More information about the use-livecode mailing list