python-shogi icon indicating copy to clipboard operation
python-shogi copied to clipboard

Extend codec support for CSA file parsing

Open yoshi486x opened this issue 3 years ago • 1 comments

Issue

When trying to parse CSA file in a Windows environment, the below error appeared due to not specifying the encoding format.

UnicodeDecodeError: 'cp932' codec can't decode byte 0x86 in position 47: illegal multibyte sequence

Solution

This fix will specify the two encoding formats already used to parse a KIF file which are 'cp932' and 'utf-8-sig'.

yoshi486x avatar Feb 23 '22 03:02 yoshi486x

@yoshi486x Thank you for your contribution!

gunyarakun avatar Feb 23 '22 03:02 gunyarakun