I’m trying to upload a SGF file with players whose names are written in Japanese characters (see katrain screenshot). When I try to upload them to a collection, I get a 500 error. The only thing I can think of is that the UTF8 parser barfs because it doesn’t properly handle extended characters.
It does allow for UTF-8 characters, e.g. here’s one of my uploads of a game between Cho Chikun and Watanabe Akira (9d shogi player). So there must be another reason why the upload is failing. Perhaps you could share the contents of the file itself?
I found the issue: the sgf contains the following handicap information: HA[授先], while the system needs an integer there to give the number of handicap stones. If you remove that from the sgf it should upload like normal.
If this is the sgf that’s outputted by katrain, it may make sense to ask its maker, @sanderl, if this is intended behaviour.
Also, I guess @anoek may want to know this as well
If you’re adding handling for wonky SGFs, another thing to be aware of is that SGFs downloaded from Fox Go server represent 6.5 japanese komi as KM, and chinese 6.5 komi and 7.5 komi respectively as KM and KM.
(So, for Chinese rules but not Japanese rules, they use the traditional half-counting where 1 unit = 2 points, but for whatever reason, they multiply all komis by 100 when writing it to the SGF).
For the time being I’ve dodged the problem by finding these SGFs where work was done to translate them to English, aaaaand should you be curious, I welcome you to click here. Play Go at online-go.com! | OGS
it looks like it was re-saved with katrain, which just leaves wonky fields wonky.
katrain tends to have reasonable defaults and some hardcoded fixes, as chinese servers are the worst for respecting the sgf standard