Hello, I have some problem. Data are not loading from my xml file only in Korea. Output_log shows: "ArgumentException: Encoding name 'ks_c_5601-1987' not supported" My xml file: Code (CSharp): <?xml version="1.0" encoding="UTF-8"?> <Texts> <English> <Text id="0" text="Text0"/> </English> </Texts> And loading method: Code (CSharp): byte[] encodedString = Encoding.UTF8.GetBytes(xml.text); MemoryStream ms = new MemoryStream(encodedString); ms.Flush(); ms.Position = 0; XmlDocument doc = new XmlDocument(); doc.Load(ms); Could someone help me?
The file you're trying to open is encoded in EUC-KR instead of UTF-8. It is a legacy text file encoding that isn't compatible with any of the UTF encodings as far as I'm aware. https://en.wikipedia.org/wiki/Extended_Unix_Code#EUC-KR
According to this page, the Encoding class has support for this encoding, so you might be able to get it to work. I have no idea if Unity actually does support it though. https://docs.microsoft.com/en-us/dotnet/api/system.text.encoding?view=netframework-4.7.2