Why does python print ascii rather than unicode despire that I declare coding=UTF-8?
Question: 
    # coding=UTF-8
    with open('/home/marius/dev/python/navn/list.txt') as f:
        lines = f.read().splitlines()
        print lines
    

The file `/home/marius/dev/python/navn/list.txt` contains a list of strings
with some special characters, such as æ,ø,å,Æ,Ø,Å. In the terminal, these are
all rendered as hexadecimals. I want these to be rendered as UTF-8. How is
this done?


Answer: By decoding the data from UTF-8 to Unicode values, then having Python encode
those values back to your terminal encoding automatically:

    
    
    with open('/home/marius/dev/python/navn/list.txt') as f:
        for line in f:
            print line.decode('utf8')
    

You can use `io.open()` and have the data decoded for you as you read:

    
    
    import io
    
    with io.open('/home/marius/dev/python/navn/list.txt', encoding='utf8') as f:
        for line in f:
            print line
    

