I have a problem with printing Norwegian characters æøå when running script in Atom.
#!/usr/bin/env python3 # -*- coding: utf-8 -*- print('æøå')
3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] Traceback (most recent call last): File "/Users/sivert/Documents/Python/CSV/csv_processing.py", line 13, in <module> print('\xe6\xf8\xe5') UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-2: ordinal not in range(128) [Finished in 0.05s]
when i hit cmd+i (Run script). However the script runs perfectly when running it from terminal, so there must be something not set up right with Atom.
How do I fix this?