python - How to convert list to unicode list -
i have following list example
['justice league', 'avenger']
now problem facing convert list unicode list
unicode list example
[u'justice league', u'avenger']
how can achieve this? thank response.
try applying unicode
elements
>>> lst=['justice league', 'avenger'] >>> map(unicode,lst) [u'justice league', u'avenger']
obviously talking python 2 only, since literal strings unicode default in python 3
have @ this q&a on same subject
Comments
Post a Comment