#1 · Ignatius J Reilly
18 Nov 2011
In SGF, the character ']' has special meaning, so when it appears in a string it should be escaped, i.e. '\]'. This problem arises when player names contain ']'. For example, there is a player "Shumacher;]", and the SGF for one of his/her games begins like
(;FF[4]EV[hex19.mc.2011.jul.2.1]PB[Rottcodd]PW[Shumacher;]]SZ[19]GC[ game #1380501]SO[http://www.littlegolem.com];W[ak];B[swap];W[jf] ........
This is unparseable, and should instead be
(;FF[4]EV[hex19.mc.2011.jul.2.1]PB[Rottcodd]PW[Shumacher;\]]SZ[19]GC[ game #1380501]SO[http://www.littlegolem.com];W[ak];B[swap];W[jf] ........