aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 728cda0..30bbfd4 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -1248,8 +1248,7 @@ namespace OpenSim.Framework
1248 1248
1249 public static string Base64ToString(string str) 1249 public static string Base64ToString(string str)
1250 { 1250 {
1251 UTF8Encoding encoder = new UTF8Encoding(); 1251 Decoder utf8Decode = Encoding.UTF8.GetDecoder();
1252 Decoder utf8Decode = encoder.GetDecoder();
1253 1252
1254 byte[] todecode_byte = Convert.FromBase64String(str); 1253 byte[] todecode_byte = Convert.FromBase64String(str);
1255 int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length); 1254 int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length);