diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Util.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index e03bb74..fd9586c 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1236,8 +1236,7 @@ namespace OpenSim.Framework | |||
1236 | 1236 | ||
1237 | public static string Base64ToString(string str) | 1237 | public static string Base64ToString(string str) |
1238 | { | 1238 | { |
1239 | UTF8Encoding encoder = new UTF8Encoding(); | 1239 | Decoder utf8Decode = Encoding.UTF8.GetDecoder(); |
1240 | Decoder utf8Decode = encoder.GetDecoder(); | ||
1241 | 1240 | ||
1242 | byte[] todecode_byte = Convert.FromBase64String(str); | 1241 | byte[] todecode_byte = Convert.FromBase64String(str); |
1243 | int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length); | 1242 | int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length); |