7 messages in com.googlegroups.pylons-discussRe: Encoding errors in controllers
FromSent OnAttachments
voltron21 Jun 2007 01:05 
Matt Feifarek21 Jun 2007 06:40 
voltron21 Jun 2007 08:15 
Mike Orr21 Jun 2007 10:02 
voltron21 Jun 2007 11:34 
Mike Orr21 Jun 2007 12:01 
voltron21 Jun 2007 13:53 
Subject:Re: Encoding errors in controllers
From:Matt Feifarek (matt@public.gmane.org)
Date:06/21/2007 06:40:05 AM
List:com.googlegroups.pylons-discuss

On 6/21/07, voltron <nhytro-gM/Ye1E23mwN+BqQ9@public.gmane.org> wrote:

This error shows up in the comandline when I start up the paster server under windows

Starting server in PID 2592. serving on 0.0.0.0:5000 view at http://127.0.0.1:5000 C:\Python24\lib\site-packages\pylons-0.9.5-py2.4.egg\pylons\wsgiapp.py: 155: Depr ecationWarning: Non-ASCII character '\xdc' in file D:\Projects \Pylons_projects\testapp\testapp\controllers\main.py on line 63, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details __import__(full_module_name)

Could someone tell me how to avoid this problem?

If you follow the python.org link in the error, the article there will show you how to place a special comment at the top of your source code that declares the encoding for your source file.

What's probably happening is that you have a unicode character in there (often happens if you cut-n-paste from a word processor or some such).