I have a list with special characters like l1 = ['øk', 'løk', 'pølse', 'pål', 'æl']
How can I print or return this list in a function so the special characters are included. I know you can write print u'Ølske'
but what do you do when you have lists?`
When I run this:
# -*- coding: utf-8 -*-
l1 = [u"ål", u"øk", u"møk"]
print l1
I get:
[u'\xe5l', u'\xf8k', u'm\xf8k']