Re: [libsecondlife-dev] Question regarding the AgentName variablefor OnInstantMessage()

2006-07-06 Thread John Hurliman
Alondria LeFay wrote: In the OnInstantMessage() event in Avatar.cs is the line: AgentName = System.Text.Encoding.UTF8.GetString((byte[])field.Data).Replace("\0", ""); Which then passes on the string to the event handler. It shows up blank in the event handler (although message comes through cor

RE: [libsecondlife-dev] Question regarding the AgentName variablefor OnInstantMessage()

2006-07-06 Thread Alondria LeFay
: [libsecondlife-dev] Question regarding the AgentName variablefor OnInstantMessage() Any variable length fields in the packets are stored as byte arrays (byte[]). If you try and do a .ToString() on a byte array you won't get anything interesting, what you want is something like this: