mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
* Converted a large number of ASCII encodings to UTF8.
* We should not be using ASCII anywhere except for legacy compatibility reasons. * A large number of UTF8 Encoders are being used in places where we should be using Util.StringToField instead. These have been tagged with // ENCODING FAULT * This should fix Mantis#799 - Japanese Profile Text does not work.
This commit is contained in:
@@ -329,7 +329,7 @@ namespace OpenSim.Region.Capabilities
|
||||
|
||||
reader.Read();
|
||||
FromBase64Transform b64 = new FromBase64Transform(FromBase64TransformMode.IgnoreWhiteSpaces);
|
||||
byte[] inp = Encoding.ASCII.GetBytes(reader.ReadString());
|
||||
byte[] inp = Encoding.UTF8.GetBytes(reader.ReadString());
|
||||
ret = b64.TransformFinalBlock(inp, 0, inp.Length);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace OpenSim.Framework.Configuration.HTTP
|
||||
count = resStream.Read(buf, 0, buf.Length);
|
||||
if (count != 0)
|
||||
{
|
||||
tempString = Encoding.ASCII.GetString(buf, 0, count);
|
||||
tempString = Encoding.UTF8.GetString(buf, 0, count);
|
||||
sb.Append(tempString);
|
||||
}
|
||||
} while (count > 0);
|
||||
|
||||
Reference in New Issue
Block a user