freeeve / pgn

a PGN (Portable Game Notation) chess game parser for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Non UTF-8 characters cause an error

dexygen opened this issue · comments

The docs for text/scanner say it is for handling UTF-8 encoding only, but there will be plenty of event and player names that will contain non-utf-8 characters. Some information on how to correct this is bufio/scanner were being used can be found here: https://stackoverflow.com/questions/29686673/read-unicode-characters-with-bufio-scanner-in-go/29756011