"Monty" wrote
Quote:
I have a cache.dat contains 100s of globals, some of the globals
contain some unprintable character. I want to search the cache.dat to
find out the globals that contain certain unprintable characters like
ascii character 27 (ESC)? Is there any cache utility/command to do so???
I'm not sure which software you're running on,
|
but D3 seems to cheerfully handle char(1) to char(251) in
basic programs. Just don't print them out as-is; get your
program to print them as some eye-catching replacement
like '^' or '%' or just '.' I think D3 handles char(0)
ok too, but try it and see. char(252) to char(254) are handled
less well, and char(255) is the worst -- pretty much fatal.
You mention 'cache' 'globals' and 'cache utility'
-- I don't know what you mean by them, so I guess you're
not using D3.
You are quite right to focus on ESC {char(27)}, but other,
infrequent offenders are tab {char(9)}, backspace {control-H},
control-J, control-M, control-S, control-Q, control-Z
and Null {char(0)}
A related topic is item-ids that are zero-length. It is quite
common for badly written programs to write out an item
called '' {the null string,} and it takes skill to find and delete
such items.