PDA

View Full Version : æøå



Thiru
04-22-2010, 07:43 PM
Hey folk,

Do anybody know how to use these chars in the python editor? æøå

Get the error
SyntaxError: Non-ASCII character '\xc3' in file C:\Users\Thiru\AppData\Roaming\McNeel\Rhinoceros\5 .0\scripts\Betondæk.py on line 21, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details

Even when i use them as comments,,it is danish letters..

Any ways thx!

Steve Baer
04-22-2010, 08:20 PM
I still need to learn more about python encodings, but it appears that if you add # -*- encoding: utf-8 -*- as the first line in your script python will work.

# -*- encoding: utf-8 -*-
print "æøå"

Thiru
04-22-2010, 08:42 PM
Yup! it worked!

Thx again!