Bug 260131. Handle UTF8 values properly

This commit is contained in:
Jim Norman 2007-05-10 21:10:07 +00:00
parent cd685ff2f3
commit ef3d008020
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 10 15:05:45 MDT 2007 - jnorman@novell.com
- Bug 260131. Handle UTF8 values properly.
-------------------------------------------------------------------
Tue May 8 12:01:24 MDT 2007 - jnorman@novell.com

View File

@ -192,7 +192,7 @@ namespace sscs.cache
private byte[] EncryptValue(string sValue)
{
byte[] baValueClear = Encoding.Default.GetBytes(sValue);
byte[] baValueClear = Encoding.Unicode.GetBytes(sValue);
return EncryptValue(baValueClear);
}
@ -205,8 +205,9 @@ namespace sscs.cache
private string DecryptValue()
{
byte[] baValueClear = DecyptValueAsBytes();
return Encoding.Default.GetString(baValueClear);
byte[] baValueClear = DecyptValueAsBytes();
return Encoding.Unicode.GetString(baValueClear);
// return Encoding.Default.GetString(baValueClear);
//return Encoding.Default.GetString(baValueClear);
}