gunyarakun / python-shogi

A pure Python shogi library with move generation and validation and handling of common formats.
GNU General Public License v3.0
179 stars 43 forks source link

Extend codec support for CSA file parsing #53

Open yoshi486x opened 2 years ago

yoshi486x commented 2 years ago

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'.

gunyarakun commented 2 years ago

@yoshi486x Thank you for your contribution!