Replace usages of ASCII with UTF8
This commit is contained in:
parent
e879135d21
commit
92996bf738
3 changed files with 6 additions and 6 deletions
|
|
@ -32,7 +32,7 @@ namespace TShockAPI.Net
|
|||
|
||||
public override void Pack(Stream stream)
|
||||
{
|
||||
stream.WriteBytes(Encoding.ASCII.GetBytes(Reason));
|
||||
stream.WriteBytes(Encoding.UTF8.GetBytes(Reason));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -69,7 +69,7 @@ namespace TShockAPI.Net
|
|||
stream.WriteInt32(RockLayer);
|
||||
stream.WriteInt32(WorldID);
|
||||
stream.WriteInt8((byte) WorldFlags);
|
||||
stream.WriteBytes(Encoding.ASCII.GetBytes(WorldName));
|
||||
stream.WriteBytes(Encoding.UTF8.GetBytes(WorldName));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue