Hi,

I'm in need of a little education. This may be a python issue rather
than a Django one, but is anybody can help I'd appreciate it.

I've written an a little script which gets external data and inserts it
into the database using the Django models. Unfortunately (or
fortunately, depending on your point of view) somebody has put the word
'Résumé' into the data source that I'm using and those accented
charactered are causing an exception when I call the save method on my
object.

The field is declared as a CharField, and the data assigned is a

Traceback (most recent call last):
  File "<console>", line 1, in ?
  File "/Users/pauls/Documents/Web Development/myapp/myscript.py", line
37, in main
    e.save()
  File ".../django/db/models/base.py", line 199, in save
    ','.join(placeholders)), db_values)
  File ".../django/db/backends/util.py", line 19, in execute
    self.db.queries.append({
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position
991: ordinal not in range(128)

I understand that it's having problems because the string is identified
as an ASCII string and that character is beyond that, but how would I
identify this string as (probably) ISO8859-1?

Paul


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

Reply via email to