def _fixAttributes( self, attributes=None ):
		if attributes is None:
			attributes = {}
		for key,value in attributes.items():
			if not isinstance( value, (str,unicode)):
				attributes[key] = unicode( value )
			elif isinstance( value, str ):
				attributes[key] = value.decode( defaultEncoding )
Fix an attribute-set to be all unicode strings
dataset/ETHPy150Open correl/Transmission-XBMC/resources/lib/basictypes/xmlgenerator.py/Generator._fixAttributes