About every once a year I am forced out on the internet to read about "encodings and such"; while reading about it all makes sense, but when actually trying to get things to work I always go through a period of swearing and frustration - I never really get it :-(
Now, in a Django view I have a selectionlist, and one of the seletions should contain the Norwegian problem child 'å'. I have tried the following: 1, I have explicitly used the HTML syntax å - however in this case Django ended up rendering the '&' as '&', i.e. as if I wanted a literal '&'. 2. I just entered the 'å' in the Python source code for the view. Then a get a Python run.-time error stating that I must declare an encoding when using non-ASCII characters. I then tried declaring the encoding 'latin-1' in the top of the source file of the view, this gave a UnicodeDecodeError triggered by Django: 'ascii' codec can't decode byte 0xe5 in position 14: ordinal not in range(128) Any hints? Joakim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.