The Text NDEF representation could be non ASCII strings (UTF-8 or
UTF-16) and the dumping scripts need to know about that.
Fixes #NFC-48
print "[ %s ]" % (sys.argv[1])
for key in properties.keys():
- val = str(properties[key])
- print " %s = %s" % (key, val)
+ if key in ["Representation"]:
+ val = unicode(properties[key])
+ else:
+ val = str(properties[key])
+ print " %s = %s" % (key, val)
print " Record = [ %s ]" % (str(i))
for key in properties.keys():
- val = str(properties[key])
+ if key in ["Representation"]:
+ val = unicode(properties[key])
+ else:
+ val = str(properties[key])
print " %s = %s" % (key, val)
tag = dbus.Interface(bus.get_object("org.neard", sys.argv[1]),