Somebody on the winboard forum remarked that it would be nice if the comment section of the header would be able to contain non-english characters (and things like chess pieces, the euro sign, etc...).
To my surprise this is already transparently supported by the format.
Recall that this command adds a comment to the header. The Chinese comment means "chess engine" according to google translate (probably a ridiculous translation).
We now inspect that the comment has indeed been added.
Code: Select all
$ ./pgheader book.bin -s
Variants supported:
normal
Comment:
国际象棋引擎
This is the actual header data
Code: Select all
$ ./pgheader book.bin -S
@ P G @ \n 1 . 0
\n 2 \n 1 \n n o r
m a l \n \345 \233 \275 \351
\231 \205 \350 \261 \241 \346 \243 \213
\345 \274 \225 \346 \223 \216 \0 \0
One can see that there are bytes with their high bit set. These belong to multi-byte characters (UTF-8 encoded).
Needless to say this stuff only applies to the comment section. The section with predefined fields is required to consist only of printable ascii characters.