I know how to convert string to unicode using unicode("string", "utf-8") and I tried applying it to a dictionary. Well, my first solution is to loop everything (key and value) then convert them to unicode. But is there a fastest way to do this?
dict = {'firstname' : 'Foo', 'lastname' : 'Bar'} To
dict = {u'firstname' : u'Foo', u'lastname' : u'Bar'} Any help would be much appreciated. Thanks.