1
0
mirror of synced 2024-11-29 01:34:42 +01:00

Some fixes for converting xml to byaml

This commit is contained in:
KillzXGaming 2019-07-18 17:10:11 -04:00
parent a254788ea5
commit 72cb2b1763

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Threading.Tasks;
using System.Text;
using Toolbox;
using System.Windows.Forms;
using Toolbox.Library;
@ -61,7 +61,9 @@ namespace FirstPlugin
public void ConvertFromString(string text)
{
data = XmlConverter.ToByml(text);
byte[] TextData = Encoding.Unicode.GetBytes(text);
StreamReader t = new StreamReader(new MemoryStream(TextData), Encoding.GetEncoding(932));
data = XmlConverter.ToByml(t.ReadToEnd());
}
#endregion