Re: Strip a ™ character

JB sundown at pacifier.com
Thu Oct 2 20:57:06 EDT 2014


I have a mac and I type the data into a field
using my keyboard.  It does not work right.
But I also have tried with files that are on
my mac and I have transferred them from
binary to ascii and then to binary code and
the conversions all work properly with all of
the files and typing except for binary to hex
which works if you are only using one line
and not too many characters which I did not
waste my time figuring out how many you can
use.

I do know you can type Mark into a field and
then transfer it to binary code and then put
that code into a field.  You can then transfer
that binary code to hex or ascii and it will
work.  The ascii will be Mark again and the
hex can be transferred to ascii and it will be
Mark and you can transfer the ascii to binary
and to ascii and it will be Mark again.

We did all of the conversions and you are still
Mark when we got done.  You are feeling good
and things are working nice!

Now you type Mark into the field and put a return
after your name.  Do all of the conversions except
the binary to hex.  You can even convert ascii to
hex and hex to binary and binary to ascii and you
will still be Mark.  Okay now using the same text
make it become binary using any transfer you want
to use.  Remember this is Mark with a return after it.
Now convert the binary to hex and use any path of
conversions to get it back to ascii and you will see
the name Mark and it will have the letters tm that are
real small and up in the air.  You are now Mark with a
trade mark symbol.  Of course if you type returns and
do not strip them and have more text some times it will
strip the return.  The best thing to do in file conversions
is strip the returns to prevent problems.

Now type Hello on one line
and type Mark on another line

you can get one line and when you
have processed it it will be fine but
if you get two lines even though you
only get the 0’s and 1’s because you
know how many their are you will end
up the the tm again.  Now type a return
and the name Mark and strip the return
with code and you will end up with tm and
Mark.  Try to strip the tm with code and you
cannot strip it out.

John Balgenorth


On Oct 2, 2014, at 5:30 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:

> JB <sundown at ...> writes:
> 
>> 
>> I am using a Mac the text is straight from a field.
>> The text works fine with the other conversions.
> 
> The question isn't what platform you're working on, but the source of the
> data. This is especially important if the source platform was different from
> the working platform.
> 
> For instance, where did theData come from? Did you open a file and put it
> into a text field? Did you type it into the field by hand? Did it come from
> a serial port or other external device?
> 
> If it's in a file, you might try looking at it with a hex editor first
> before doing any conversions... I'd lay money on the fact that you'll see
> 0x0a0d endings on each line.
> 
> -- 
> Mark Wieder
> ahsoftware at gmail.com
> 
> 
> 
> 
> _______________________________________________
> 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