G
Guest
Hello everyone... This may sound really stupid, but it is something I have
been working on all day and haven't found a solution yet.
If you go into Notepad and try the keystroke ALT+4, you get a nice little
diamond. Infact, you can do this all the way up to 127 showing different
characters including those similar with the ASCII table for letters and
numbers.
"Oh," I thought, "this could be the simple way for very simple encoding of
our log files." We are looking for an efficient way of encoding log files in
real time. Doing simple subtractions and additions on the character value to
offset them would be confusing for most novices to figure out upon
inspections of the log file (we are not looking for anything ultra secure
here).
But when I run my program and it starts logging the file, I get nice little
boxes instead of the images. Even in debug mode those characters (var =
"☺" will turn to boxes as well before even going out to the file.
I tried using the System.Text.Encoding stuff, but I get confused while
working with it.... perhaps this is not the correct thing to use.
Does anyone know how I can preserve those characters and put them to a log
file? Or is there a simpler way to encode my log file in real time? (
Rijndael and
TripleDES algs make our log files way to large).
Thank you all for reading this.
been working on all day and haven't found a solution yet.
If you go into Notepad and try the keystroke ALT+4, you get a nice little
diamond. Infact, you can do this all the way up to 127 showing different
characters including those similar with the ASCII table for letters and
numbers.
"Oh," I thought, "this could be the simple way for very simple encoding of
our log files." We are looking for an efficient way of encoding log files in
real time. Doing simple subtractions and additions on the character value to
offset them would be confusing for most novices to figure out upon
inspections of the log file (we are not looking for anything ultra secure
here).
But when I run my program and it starts logging the file, I get nice little
boxes instead of the images. Even in debug mode those characters (var =
"☺" will turn to boxes as well before even going out to the file.
I tried using the System.Text.Encoding stuff, but I get confused while
working with it.... perhaps this is not the correct thing to use.
Does anyone know how I can preserve those characters and put them to a log
file? Or is there a simpler way to encode my log file in real time? (
Rijndael and
TripleDES algs make our log files way to large).
Thank you all for reading this.