G
Guest
I just fired up the production version of VS 2005. My first activity was to
convert an application that I wrote in VS2003 .Net 1.1..... The new version
does not work the same as the old...Ive found a single bit of code that
produces a different [and from a .net 1.1 point of view incorrect] result.
The problem code is:
byte[] cipherText = byte array with lenght=48 --> 24 unicode characters
byte[] plaintext = null;
byte[] plaintextBlock = null;
byte[] cipherBlock = null;
int indexToRead =0;
int readLength = 0;
String cipherTextString ="";
String plainTextString = "";
cipherTextString = Encoding.Unicode.GetString(cipherText); <-- this is not
working the same as before
Instead of --> cipherTextString with length of 24 I get a length of 23. {I
run the same code in the vs2003 and I get the correct 24 character length}
Any help is greatly appreciated.
convert an application that I wrote in VS2003 .Net 1.1..... The new version
does not work the same as the old...Ive found a single bit of code that
produces a different [and from a .net 1.1 point of view incorrect] result.
The problem code is:
byte[] cipherText = byte array with lenght=48 --> 24 unicode characters
byte[] plaintext = null;
byte[] plaintextBlock = null;
byte[] cipherBlock = null;
int indexToRead =0;
int readLength = 0;
String cipherTextString ="";
String plainTextString = "";
cipherTextString = Encoding.Unicode.GetString(cipherText); <-- this is not
working the same as before
Instead of --> cipherTextString with length of 24 I get a length of 23. {I
run the same code in the vs2003 and I get the correct 24 character length}
Any help is greatly appreciated.