I was using the wrong encoding the whole time

This commit is contained in:
William Toohey 2018-06-15 15:08:42 +10:00
parent fed34e0943
commit 68166ea9ab
2 changed files with 3 additions and 3 deletions

View File

@ -23,14 +23,14 @@ SIG_COMPRESSED = 0x42
SIG_UNCOMPRESSED = 0x45
XML_ENCODING = 'UTF-8'
BIN_ENCODING = 'SHIFT_JISX0213'
BIN_ENCODING = 'cp932' # windows shift-jis variant
# NOTE: all of these are their python codec names
encoding_strings = {
0x20: 'ASCII',
0x00: 'ISO-8859-1',
0x60: 'EUC_JP',
0x80: 'SHIFT_JISX0213',
0x80: 'cp932',
0xA0: 'UTF-8'
}

View File

@ -8,7 +8,7 @@ requires = [
if sys.version_info < (3,0):
requires.append('future')
version = '1.5'
version = '1.6'
setup(
name='kbinxml',
description="Decoder/encoder for Konami's binary XML format",