Hello,
Is there a way to find (or remove) NULL characters from text (ASCII) files with AFR?
For an unknown reason, NULL characters are inserted into some messages and I would like to remove them automaticaly or at least find them and remove them manually.
Thanks,
Gilles A.
How to find NULL characters
Re: How to find NULL characters
You can use regular expressions.
It depends on what do you mean by NULL chars? Do you mean 00 bytes?
For example, go to Batch Replace,
check "Use regular expressions"
put \x00 into Search For and nothing should be in Replace With part.
It depends on what do you mean by NULL chars? Do you mean 00 bytes?
For example, go to Batch Replace,
check "Use regular expressions"
put \x00 into Search For and nothing should be in Replace With part.
Re: How to find NULL characters
Yes, this is exactly what I mean.Roman wrote:It depends on what do you mean by NULL chars? Do you mean 00 bytes?
Thank you very much, I will try that out.
Gilles A.
Re: How to find NULL characters
Hello,
I sent an email to support@abacre.com where you will find a sample file that contains a 00 byte char.
I have tried to search with : \x00, '\x00' and "\x00" without success.
I also tried the Find, Replace and Batch Replace tabs without success.
Can you please give me more explanation and use my sample file as an example.
Thanks,
Gilles A.
I sent an email to support@abacre.com where you will find a sample file that contains a 00 byte char.
I have tried to search with : \x00, '\x00' and "\x00" without success.
I also tried the Find, Replace and Batch Replace tabs without success.
Can you please give me more explanation and use my sample file as an example.
Thanks,
Gilles A.
Re: How to find NULL characters
We received your mail. The correct syntax is \x00 or \x{00}
We made some test and it looks like it does not work with 00 char.
We are working on it right now. We will send you email then (later on today or tomorrow).
We made some test and it looks like it does not work with 00 char.
We are working on it right now. We will send you email then (later on today or tomorrow).
Re: How to find NULL characters
Hi Roman,Roman wrote:...
We are working on it right now. We will send you email then (later on today or tomorrow).
I have no news from you.
Are you still working on this case?
Gilles A.
Re: How to find NULL characters
We are still working on it. You know that in some programming languages strings are NULL-terminated. So it's a little bit special case to remove NULL chars.
Re: How to find NULL characters
Thanks for these too!!!!!!!!!hypnosis downloadsgarchamb wrote:Hello,
I sent an email to support@abacre.com where you will find a sample file that contains a 00 byte char.
I have tried to search with : \x00, '\x00' and "\x00" without success.
I also tried the Find, Replace and Batch Replace tabs without success.
Can you please give me more explanation and use my sample file as an example.
Thanks,
Gilles A.
Re: How to find NULL characters
We managed to get around the problem in the end.
So for future reference:
we used od -b to turn the file into octal format. We then did a grep for " 000" in the file (note space before 000). This confirmed the file had a null character.
Just finding files with the null character was sufficient - we didn't look any further into replacing the null character.
Thanks...best way to get rid of acne
So for future reference:
we used od -b to turn the file into octal format. We then did a grep for " 000" in the file (note space before 000). This confirmed the file had a null character.
Just finding files with the null character was sufficient - we didn't look any further into replacing the null character.
Thanks...best way to get rid of acne