Hi,
Firstly, this is not so much of a find / replace question but more a character manipulation question so apologies if it's posted in the wrong place.
I have a number of files produced from a data feed where traditional 7-bit ASCII charcters are sent through but the top-bit (the 8th bit) is being used / abused to contain a flag. The engine that processes this data is aware of the flag and handles the data as appropriate, but the abuse of this bit flag makes the data unreadable to humans.
E.g.
The ASCII character for A is 0x41 (65) - 1000001
However in the files I have this may come through as
0x41 (65) - 01000001
or 0xC1 (193) - 11000001
To make the data human readable I need to be able to reset this top-bit to 0.
Does anyone know of a simple way to do this or should I be looking to create a script to do this, or am I in the custom tools arena?
Thanks,
Jon
Firstly, this is not so much of a find / replace question but more a character manipulation question so apologies if it's posted in the wrong place.
I have a number of files produced from a data feed where traditional 7-bit ASCII charcters are sent through but the top-bit (the 8th bit) is being used / abused to contain a flag. The engine that processes this data is aware of the flag and handles the data as appropriate, but the abuse of this bit flag makes the data unreadable to humans.
E.g.
The ASCII character for A is 0x41 (65) - 1000001
However in the files I have this may come through as
0x41 (65) - 01000001
or 0xC1 (193) - 11000001
To make the data human readable I need to be able to reset this top-bit to 0.
Does anyone know of a simple way to do this or should I be looking to create a script to do this, or am I in the custom tools arena?
Thanks,
Jon