herzbube / libsgfcplusplus

libsgfc++. A C++ library that uses SGFC to read and write SGF (Smart Game Format) data.
Apache License 2.0
12 stars 2 forks source link

Handle text encodings #20

Closed herzbube closed 3 years ago

herzbube commented 4 years ago

The CA property defines the encoding used for for SimpleText and Text type values.

The library currently has no special handling for text encodings, it simply reads the characters it receives from SGFC into std::string. This must be thought through. Some questions that need to be answered:

The status quo is this:

Libraries that can deal with encoded strings:

Other references:

herzbube commented 3 years ago

The upcoming SGFC 2.0 has extensive encoding support via iconv. This SGFC version has been integrated and the corresponding arguments have been exposed in the libsgfc++ API. This issue can therefore be closed.