diff options
author | UbitUmarov | 2012-07-17 00:54:23 +0100 |
---|---|---|
committer | UbitUmarov | 2012-07-17 00:54:23 +0100 |
commit | d5f4fb7b50fb7c594b018f8241399e22f88fc951 (patch) | |
tree | 8f3dab3d170596f02b1d1d836a0bc08a3e6b8ebd /OpenSim/Framework/Util.cs | |
parent | UbitOde: remove useless water collider from active code. (diff) | |
parent | Merge branch 'avination' into careminster (diff) | |
download | opensim-SC_OLD-d5f4fb7b50fb7c594b018f8241399e22f88fc951.zip opensim-SC_OLD-d5f4fb7b50fb7c594b018f8241399e22f88fc951.tar.gz opensim-SC_OLD-d5f4fb7b50fb7c594b018f8241399e22f88fc951.tar.bz2 opensim-SC_OLD-d5f4fb7b50fb7c594b018f8241399e22f88fc951.tar.xz |
Merge branch 'avination' into ubitwork
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 728cda0..384f716 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -148,6 +148,7 @@ namespace OpenSim.Framework | |||
148 | } | 148 | } |
149 | 149 | ||
150 | public static Encoding UTF8 = Encoding.UTF8; | 150 | public static Encoding UTF8 = Encoding.UTF8; |
151 | public static Encoding UTF8NoBomEncoding = new UTF8Encoding(false); | ||
151 | 152 | ||
152 | /// <value> | 153 | /// <value> |
153 | /// Well known UUID for the blank texture used in the Linden SL viewer version 1.20 (and hopefully onwards) | 154 | /// Well known UUID for the blank texture used in the Linden SL viewer version 1.20 (and hopefully onwards) |
@@ -1248,8 +1249,7 @@ namespace OpenSim.Framework | |||
1248 | 1249 | ||
1249 | public static string Base64ToString(string str) | 1250 | public static string Base64ToString(string str) |
1250 | { | 1251 | { |
1251 | UTF8Encoding encoder = new UTF8Encoding(); | 1252 | Decoder utf8Decode = Encoding.UTF8.GetDecoder(); |
1252 | Decoder utf8Decode = encoder.GetDecoder(); | ||
1253 | 1253 | ||
1254 | byte[] todecode_byte = Convert.FromBase64String(str); | 1254 | byte[] todecode_byte = Convert.FromBase64String(str); |
1255 | int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length); | 1255 | int charCount = utf8Decode.GetCharCount(todecode_byte, 0, todecode_byte.Length); |