Bug 260131. Handle UTF8 values properly
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|   | ||||
							
								
								
									
										5
									
								
								CASA/micasad/cache/KeyValue.cs
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										5
									
								
								CASA/micasad/cache/KeyValue.cs
									
									
									
									
										vendored
									
									
								
							| @@ -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); | ||||
|         } | ||||
|  | ||||
| @@ -206,7 +206,8 @@ namespace sscs.cache | ||||
|         private string DecryptValue() | ||||
|         {             | ||||
|             byte[] baValueClear = DecyptValueAsBytes();           | ||||
|             return Encoding.Default.GetString(baValueClear);                                     | ||||
| 	    return Encoding.Unicode.GetString(baValueClear);  | ||||
| //            return Encoding.Default.GetString(baValueClear);                                     | ||||
|             //return Encoding.Default.GetString(baValueClear);                                     | ||||
|         } | ||||
| 				 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user