Fix resource directory name encoding
This commit is contained in:
parent
1e36b7d078
commit
aefb2caa08
|
@ -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;
|
||||
|
|
|
@ -493,7 +493,7 @@ types:
|
|||
type: u2
|
||||
- id: text
|
||||
type: str
|
||||
encoding: UTF-8
|
||||
encoding: utf-16
|
||||
size: length * 2
|
||||
resource_data_entry:
|
||||
seq:
|
||||
|
|
Loading…
Reference in New Issue