* minor: use system ascii encoding rather than newing up our own object
parent
ce0a84cbc0
commit
aaad2fc8ff
|
@ -40,8 +40,6 @@ namespace OpenSim.Framework.Serialization.External
|
||||||
/// XXX: Please do not use yet.
|
/// XXX: Please do not use yet.
|
||||||
public class UserInventoryItemSerializer
|
public class UserInventoryItemSerializer
|
||||||
{
|
{
|
||||||
protected static ASCIIEncoding m_asciiEncoding = new ASCIIEncoding();
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deserialize item
|
/// Deserialize item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -50,7 +48,7 @@ namespace OpenSim.Framework.Serialization.External
|
||||||
/// <exception cref="System.Xml.XmlException"></exception>
|
/// <exception cref="System.Xml.XmlException"></exception>
|
||||||
public static InventoryItemBase Deserialize(byte[] serialization)
|
public static InventoryItemBase Deserialize(byte[] serialization)
|
||||||
{
|
{
|
||||||
return Deserialize(m_asciiEncoding.GetString(serialization, 0, serialization.Length));
|
return Deserialize(Encoding.ASCII.GetString(serialization, 0, serialization.Length));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue