Graphml parse error

前端 未结 2 1630
星月不相逢
星月不相逢 2021-01-24 20:24

I tried to create a graphml file using python and igraph library. I can construct igraph\'s graph object and wrote it to a file using:

g.write_graphml(\"mygraph.         


        
2条回答
  •  星月不相逢
    2021-01-24 20:53

    I already see the libary source code. I think library can output only UTF-8 XML Encoding. So all character must be UTF-8 encoding and if some non-UTF-8 character contains in file, Errors will be raised.

    The Solution:

    You should convert all string in your python application to UTF-8 encoding before use as describe here

    Hope this help.

提交回复
热议问题