aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs20
1 files changed, 13 insertions, 7 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index f1ecc8a..0215994 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -84,7 +84,8 @@ namespace OpenSim.Region.ClientStack
84 private int m_lastPacketsReceived = 0; 84 private int m_lastPacketsReceived = 0;
85 private byte[] ZeroOutBuffer = new byte[4096]; 85 private byte[] ZeroOutBuffer = new byte[4096];
86 86
87 private readonly Encoding m_encoding = Encoding.ASCII; 87 // ENCODING FAULT
88 private readonly Encoding m_encoding = Encoding.UTF8;
88 private readonly LLUUID m_agentId; 89 private readonly LLUUID m_agentId;
89 private readonly uint m_circuitCode; 90 private readonly uint m_circuitCode;
90 private int m_moneyBalance; 91 private int m_moneyBalance;
@@ -1165,7 +1166,8 @@ namespace OpenSim.Region.ClientStack
1165 // 6 to 7 items at a time, so let's stick with 6 1166 // 6 to 7 items at a time, so let's stick with 6
1166 int MAX_ITEMS_PER_PACKET = 6; 1167 int MAX_ITEMS_PER_PACKET = 6;
1167 1168
1168 Encoding enc = Encoding.ASCII; 1169 // ENCODING FAULT
1170 Encoding enc = Encoding.UTF8;
1169 uint FULL_MASK_PERMISSIONS = 2147483647; 1171 uint FULL_MASK_PERMISSIONS = 2147483647;
1170 1172
1171 if (fetchItems) 1173 if (fetchItems)
@@ -1336,7 +1338,8 @@ namespace OpenSim.Region.ClientStack
1336 1338
1337 public void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item) 1339 public void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item)
1338 { 1340 {
1339 Encoding enc = Encoding.ASCII; 1341 // ENCODING FAULT
1342 Encoding enc = Encoding.UTF8;
1340 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; 1343 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
1341 FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply); 1344 FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply);
1342 // TODO: don't create new blocks if recycling an old packet 1345 // TODO: don't create new blocks if recycling an old packet
@@ -1378,7 +1381,8 @@ namespace OpenSim.Region.ClientStack
1378 /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see> 1381 /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see>
1379 public void SendInventoryItemCreateUpdate(InventoryItemBase Item) 1382 public void SendInventoryItemCreateUpdate(InventoryItemBase Item)
1380 { 1383 {
1381 Encoding enc = Encoding.ASCII; 1384 // ENCODING FAULT
1385 Encoding enc = Encoding.UTF8;
1382 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; 1386 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
1383 UpdateCreateInventoryItemPacket InventoryReply = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket(PacketType.UpdateCreateInventoryItem); 1387 UpdateCreateInventoryItemPacket InventoryReply = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket(PacketType.UpdateCreateInventoryItem);
1384 // TODO: don't create new blocks if recycling an old packet 1388 // TODO: don't create new blocks if recycling an old packet
@@ -2213,7 +2217,8 @@ namespace OpenSim.Region.ClientStack
2213 { 2217 {
2214 objdata.TextureEntry = textureEntry; 2218 objdata.TextureEntry = textureEntry;
2215 } 2219 }
2216 Encoding enc = Encoding.ASCII; 2220 // ENCODING FAULT
2221 Encoding enc = Encoding.UTF8;
2217 LLVector3 pos = new LLVector3(objdata.ObjectData, 16); 2222 LLVector3 pos = new LLVector3(objdata.ObjectData, 16);
2218 pos.X = 100f; 2223 pos.X = 100f;
2219 objdata.ID = 8880000; 2224 objdata.ID = 8880000;
@@ -2941,7 +2946,8 @@ namespace OpenSim.Region.ClientStack
2941 } 2946 }
2942 else 2947 else
2943 { 2948 {
2944 Encoding _enc = Encoding.ASCII; 2949 // ENCODING FAULT
2950 Encoding _enc = Encoding.UTF8;
2945 2951
2946 switch (Pack.Type) 2952 switch (Pack.Type)
2947 { 2953 {
@@ -3989,7 +3995,7 @@ namespace OpenSim.Region.ClientStack
3989 OutPacket(tpStart, ThrottleOutPacketType.Task); 3995 OutPacket(tpStart, ThrottleOutPacketType.Task);
3990 3996
3991 TeleportProgressPacket tpProgress = (TeleportProgressPacket)PacketPool.Instance.GetPacket(PacketType.TeleportProgress); 3997 TeleportProgressPacket tpProgress = (TeleportProgressPacket)PacketPool.Instance.GetPacket(PacketType.TeleportProgress);
3992 tpProgress.Info.Message = (new ASCIIEncoding()).GetBytes("sending_landmark"); 3998 tpProgress.Info.Message = (new UTF8Encoding()).GetBytes("sending_landmark");
3993 tpProgress.Info.TeleportFlags = 8; 3999 tpProgress.Info.TeleportFlags = 8;
3994 tpProgress.AgentData.AgentID = tpReq.Info.AgentID; 4000 tpProgress.AgentData.AgentID = tpReq.Info.AgentID;
3995 OutPacket(tpProgress, ThrottleOutPacketType.Task); 4001 OutPacket(tpProgress, ThrottleOutPacketType.Task);