An alternative solution is to replace the pound character with the HTML
entity £.
  -- Scott

On Tue, Sep 30, 2008 at 8:01 AM, Jens <[EMAIL PROTECTED]> wrote:

>
> I got the same message the other day and the solution was to put
> following line at the top (first line, befor everything else) of my
> models.py:
>
> #coding: utf8
>
> worked for me, hope it'll work for you.
>
> Jens
>
> On 30 Sep., 13:07, Nick <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I've recently noticed that I'm getting the following in my Apache
> > error log...
> >
> > DeprecationWarning: Non-ASCII character '\xc2' in file /var/www/django/
> > newsite/web/models.py on line 101, but no encoding declared; seehttp://
> www.python.org/peps/pep-0263.htmlfor details
> >
> > Line 101 in my models.py file contains...
> >
> > price_per_week = models.CharField(max_length=100, blank=True,
> > help_text="Calculate average price <strong>per week</strong>.  Include
> > <strong>£</strong> prefix.<br />Example: <strong>\"£150\"</strong>,
> > <strong>\"£300-£320\"</strong>, <strong>\"£100+\"</strong>")
> >
> > I'm guessing it's something to do with the help_text, specifically the
> > £ symbol.
> >
> > Can anybody shed some light on how I can fix this, presumably I need
> > to declare an encoding, or there is an encoding mismatch going on
> > somewhere?
> >
> > Thanks,
> > Nick
> >
>


-- 
http://scott.andstuff.org/  |  http://truthadorned.org/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to