Hi,
If I have a UTF-8 encoded SGF file ( for e.g., in Chinese), quarry
can not recognize the UTF-8 character in the sgf file, including the
player's name and the comment.
So I find the problem is happened in sgf-parser.c, in the parser, it
is assumed that the sgf is a latin code file. If it is changed to
UTF-8 encode, the problem can be solved, and I think the latin encoded
will not affect too (not sure).
The patch:
------------------------------
--- src/sgf/sgf-parser.c (revision 1003)
+++ src/sgf/sgf-parser.c (working copy)
@@ -380,7 +380,7 @@
data->board = NULL;
data->error_list = *error_list;
- data->latin1_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
+ data->latin1_to_utf8 = iconv_open ("UTF-8", "UTF-8");
assert (data->latin1_to_utf8 != (iconv_t) (-1));
next_token (data);
Liangxu Wang
_______________________________________________
Quarry-dev mailing list
[email protected]
https://mail.gna.org/listinfo/quarry-dev