diff options
author | Jeff Ames | 2007-11-08 07:14:46 +0000 |
---|---|---|
committer | Jeff Ames | 2007-11-08 07:14:46 +0000 |
commit | fc3e247956d11b9e28a1ec0654eb4a7e92d7c91b (patch) | |
tree | f632e29ecfcc938ca56e81b3b27fc0e1ebe418aa /OpenSim/Region/ClientStack/ClientView.API.cs | |
parent | converted hard-coded chat type values to ChatTypeEnum (diff) | |
download | opensim-SC_OLD-fc3e247956d11b9e28a1ec0654eb4a7e92d7c91b.zip opensim-SC_OLD-fc3e247956d11b9e28a1ec0654eb4a7e92d7c91b.tar.gz opensim-SC_OLD-fc3e247956d11b9e28a1ec0654eb4a7e92d7c91b.tar.bz2 opensim-SC_OLD-fc3e247956d11b9e28a1ec0654eb4a7e92d7c91b.tar.xz |
fixed non-ASCII chat and IM
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index 14e1b39..c8213fc 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs | |||
@@ -251,6 +251,7 @@ namespace OpenSim.Region.ClientStack | |||
251 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp) | 251 | LLUUID imSessionID, string fromName, byte dialog, uint timeStamp) |
252 | { | 252 | { |
253 | Encoding enc = Encoding.ASCII; | 253 | Encoding enc = Encoding.ASCII; |
254 | Encoding encUTF8 = Encoding.UTF8; | ||
254 | ImprovedInstantMessagePacket msg = new ImprovedInstantMessagePacket(); | 255 | ImprovedInstantMessagePacket msg = new ImprovedInstantMessagePacket(); |
255 | msg.AgentData.AgentID = fromAgent; | 256 | msg.AgentData.AgentID = fromAgent; |
256 | msg.AgentData.SessionID = fromAgentSession; | 257 | msg.AgentData.SessionID = fromAgentSession; |
@@ -264,7 +265,7 @@ namespace OpenSim.Region.ClientStack | |||
264 | msg.MessageBlock.RegionID = LLUUID.Random(); | 265 | msg.MessageBlock.RegionID = LLUUID.Random(); |
265 | msg.MessageBlock.Timestamp = timeStamp; | 266 | msg.MessageBlock.Timestamp = timeStamp; |
266 | msg.MessageBlock.ToAgentID = toAgent; | 267 | msg.MessageBlock.ToAgentID = toAgent; |
267 | msg.MessageBlock.Message = enc.GetBytes(message + "\0"); | 268 | msg.MessageBlock.Message = encUTF8.GetBytes(message + "\0"); |
268 | msg.MessageBlock.BinaryBucket = new byte[0]; | 269 | msg.MessageBlock.BinaryBucket = new byte[0]; |
269 | 270 | ||
270 | OutPacket(msg); | 271 | OutPacket(msg); |