Re: Strip a ™ character
JB
sundown at pacifier.com
Wed Oct 1 18:01:24 EDT 2014
It looks to me the code is good. I guess
someone decided they could Trade Mark ™
Binary to Hex.
In Hex it shows up as either a A or AA. You
would think it would always be AA since that
is the Hex value for ™.
It is easy to strip the ™ from the beginning of
Hex code because Hex always starts with a
number but there could be two A”s at the end
of Hex code so stripping them could cause you
problems.
John Balgenorth
On Oct 1, 2014, at 9:56 AM, JB <sundown at pacifier.com> wrote:
> It could be I am writing the part below wrong.
>
> repeat with x = 1 to the len of theData -8 step 8
>
> What I am trying to do is get 8 characters and process
> the eight characters and do it for the length of theData.
> Is that written wrong?
>
> John Balgenorth
>
>
> On Oct 1, 2014, at 8:35 AM, JB <sundown at pacifier.com> wrote:
>
>> 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
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>>
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list