[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
Gephi forumsPlease post new questions on facebook group too (https://www.facebook.com/groups/gephi) 2012-04-30T08:05:45+01:00 https://forum-gephi.org/app.php/feed/topic/1817 2012-04-30T08:05:45+01:002012-04-30T08:05:45+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6296#p6296 <![CDATA[Re: Special characters in GEFX import]]> this one, as it is the same bug described differently.

Statistics:Posted by admin — 30 Apr 2012 08:05


]]>
2012-04-29T21:54:30+01:002012-04-29T21:54:30+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6291#p6291 <![CDATA[Re: Special characters in GEFX import]]> Statistics:Posted by mbastian — 29 Apr 2012 21:54


]]>
2012-04-26T15:26:15+01:002012-04-26T15:26:15+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6271#p6271 <![CDATA[Re: Special characters in GEFX import]]> I'm not an expert about this, but I guess sometimes it is just not possible to detect the charset correctly without the BOM?

Eduardo

Statistics:Posted by eduramiba — 26 Apr 2012 15:26


]]>
2012-04-24T15:34:54+01:002012-04-24T15:34:54+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6258#p6258 <![CDATA[Re: Special characters in GEFX import]]>
I took a look at the code in "ImporterGEXF.java", in "execute", I switched some lines:

CODE:

 InputStream in = new ReaderInputStream(reader); xmlReader = inputFactory.createXMLStreamReader(in, "UTF-8");
Where "ReaderInputStream" is a class which converts Reader to InputStream (quite old stuff, but works pretty well here). Then, xmlReader can created with any encoding (here just "UTF-8" hardcoded).

Probably a better way of dealing with UTF-8 files?

Statistics:Posted by GapaxGermany — 24 Apr 2012 15:34


]]>
2012-04-24T15:27:26+01:002012-04-24T15:27:26+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6257#p6257 <![CDATA[Re: Special characters in GEFX import]]> But I guess it should not be necessary. I'll check the code.

Eduardo
Accent_4_with_BOM.gexf

Statistics:Posted by eduramiba — 24 Apr 2012 15:27


]]>
2012-04-24T14:53:18+01:002012-04-24T14:53:18+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6256#p6256 <![CDATA[Re: Special characters in GEFX import]]>
... meanwhile, I'm already in the code, seems to be a problem with the XMLStreamReader in ImporterGEXF.java ... ;-)
Accent_4.gexf

Statistics:Posted by GapaxGermany — 24 Apr 2012 14:53


]]>
2012-04-24T14:51:02+01:002012-04-24T14:51:02+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6255#p6255 <![CDATA[Re: Special characters in GEFX import]]> Can you share at least some part of the file to see what can be wrong?

Eduardo

Statistics:Posted by eduramiba — 24 Apr 2012 14:51


]]>
2012-04-24T13:48:16+01:002012-04-24T13:48:16+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6252#p6252 <![CDATA[Re: Special characters in GEFX import]]>
I want to bring up this issue again, please forgive me ;-)

I tried it now not only on Windows, but also on Mac, and there the problem is the same. I made a screenshot which shows the problem: on the left, you can see Gephis Data Laboratory with the wrongly displayed label. On the right, it shows a simple text editor which has opened the same GEXF file and which shows the label correctly (it should be "König"):

Image

Statistics:Posted by GapaxGermany — 24 Apr 2012 13:48


]]>
2012-04-22T18:54:40+01:002012-04-22T18:54:40+01:00 https://forum-gephi.org/viewtopic.php?t=1817&p=6214#p6214 <![CDATA[Special characters in GEXF import]]>
I'm importing some data into Gephi via self-written GEXF files. In the GEFX files, I set the size of the nodes:

CODE:

<node id="3060473429321147825814991366103" label="Mühe" ><viz:color r="127" g="201" b="127" a="1" /><viz:shape value="triangle" /><viz:size value="30"></viz:size></node>
You see that the node has the label "Mühe" with the German special character "ü". The file itself is UTF-8 encoded and seems to be fine.

When I import these files into Gephi, all the special charactes are destroyed, for me it seems so that there is somewhere a string conversion done with the wrong encoding. When I don't add the size information, the file is imported fine and everything looks perfect.

Statistics:Posted by GapaxGermany — 22 Apr 2012 18:54


]]>