Hi,

As I use characters with accents, I got the following issue yesterday
when validating my models :

mvmo.cv: Non-ASCII character '\xc3' in file /home/django/mvmo/../mvmo/
cv/models.
py on line 111, but no encoding declared; see http://www.python.org/peps/pep-026
3.html for details (models.py, line 111)

Ok, so with this helpful error message, I could easily find that I had
to add

# -*- coding: utf8 -*-

at the beginning of my file to solve the issue.

So my question is : why is not such a line added by default in
models.py so that such an issue never happens ?

You could have something like for a default models.py :

# -*- coding: <set your encoding here> -*-
from django.db import models

# Create your models here.

Does it make sense ? Is it worth a ticket ? would it be solved by the
unicode branch ?

Regards,
Nicolas


--~--~---------~--~----~------------~-------~--~----~
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