Fix resource directory name encoding

This commit is contained in:
~lucidiot 2021-11-12 00:36:16 +01:00
parent 1e36b7d078
commit aefb2caa08
2 changed files with 2 additions and 2 deletions

View File

@ -937,7 +937,7 @@ namespace Kaitai
private void _read()
{
_length = m_io.ReadU2le();
_text = System.Text.Encoding.GetEncoding("UTF-8").GetString(m_io.ReadBytes((Length * 2)));
_text = System.Text.Encoding.GetEncoding("utf-16").GetString(m_io.ReadBytes((Length * 2)));
}
private ushort _length;
private string _text;

View File

@ -493,7 +493,7 @@ types:
type: u2
- id: text
type: str
encoding: UTF-8
encoding: utf-16
size: length * 2
resource_data_entry:
seq: