Statistics:Posted by admin — 31 Mar 2010 10:47
CODE:
data.setNodeLabel("id",myUnicodeString.encode("utf-8"))
Statistics:Posted by paul — 31 Mar 2010 10:05
CODE:
data.setNodeLabel("id",myUnicodeString)
Ok now if I do this :Traceback (most recent call last):
Traceback (most recent call last):
File "sqlToGexf.py", line 61, in ?
data.setNodeLabel(str(idNode),topic)
File "libgexf.py", line 776, in setNodeLabel
def setNodeLabel(self, *args): return _libgexf.Data_setNodeLabel(self, *args)
TypeError: in method 'Data_setNodeLabel', argument 3 of type 'std::string const &'
CODE:
data.setLabel("id",str(myUnicodeString))
Of course I could get rid of accents but well I first want to be sure there's no way to keep my dear french accents ?Traceback (most recent call last):
File "sqlToGexf.py", line 61, in ?
data.setNodeLabel(str(idNode),str(topic))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2: ordinal not in range(128)
Statistics:Posted by paul — 31 Mar 2010 09:28