E
EmeraldShield
(Dot Net 2 C# application - using Encoding.UTF8 with a StreamReader)
I have a very strange problem that I cannot explain with a UTF8 Readline()
although this could exist in other types of encoding, I have not tried them.
Our application wrote this sequence to a UTF8 file. Now I am loading it
back and the text is not coming back in the same as it went out.
DATA:
from: processfrom checkemail failed: 501 syntax error in parameters: invalid
char in email: "sometext\content-transfer-encoding:"@server.com
command: mail from:"sometext\content-transfer-encoding:"@server.com
Each of those lines will be slipt at the \c of the
content-transfer-encoding. They are not high order characters, and I don't
ever remember \c being a control character for anything.
So instead of getting back in two lines that I wrote out, I get in 4 lines.
Any ideas as to why this is, and how would I correct it? I am guessing that
I will need to escape the sequence prior to writing it out, but I don't know
why and that bugs me.
Thanks for any help.
I have a very strange problem that I cannot explain with a UTF8 Readline()
although this could exist in other types of encoding, I have not tried them.
Our application wrote this sequence to a UTF8 file. Now I am loading it
back and the text is not coming back in the same as it went out.
DATA:
from: processfrom checkemail failed: 501 syntax error in parameters: invalid
char in email: "sometext\content-transfer-encoding:"@server.com
command: mail from:"sometext\content-transfer-encoding:"@server.com
Each of those lines will be slipt at the \c of the
content-transfer-encoding. They are not high order characters, and I don't
ever remember \c being a control character for anything.
So instead of getting back in two lines that I wrote out, I get in 4 lines.
Any ideas as to why this is, and how would I correct it? I am guessing that
I will need to escape the sequence prior to writing it out, but I don't know
why and that bugs me.
Thanks for any help.