.gexf import with many attributes messes up encoding?

Asked by Kristian

I have two .gexf files where attributes are encoded in UTF-8 and contain Eastern European characters. The only difference in the two files is the number of node attributes (one has 28 and the other 51, most of them are float). When I open the file with longer attribute list, Gephi does not display labels with correct encoding anymore. I get no errors in parsing .gexf files, and the log does not seem to hint at any problem either.
I can provide files upon request (they contain sensitive information).

Question information

Language:
English Edit question
Status:
Solved
For:
Gephi Edit question
Assignee:
No assignee Edit question
Solved by:
Sébastien Heymann
Solved:
Last query:
Last reply:
Revision history for this message
Best Sébastien Heymann (sebastien.heymann) said :
#1

Hi,

This is a recent bug: https://github.com/gephi/gephi/issues/474

Can you try to add the BOM at the beginning of the XML file?

For instance, open it in Notepad++, then in the Encoding menu, select Encode in UTF-8.

Revision history for this message
Kristian (krisqian) said :
#2

Hi Sébastien, manually adding the BOM solves it, but it is funny that for a fewer number of attributes BOM is absolutely not needed and the file imports correctly.

Revision history for this message
Kristian (krisqian) said :
#3

Thanks Sébastien Heymann, that solved my question.