Hi!
My application is all UTF-8 (Database, file encodings) and I can't
build an index of data containing non-ASCII characters:
8<----------------------------------------------------------------------
% python manage.py index --rebuild
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/
__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/
__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/
base.py", line 195, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/
base.py", line 222, in execute
output = self.handle(*args, **options)
File "/usr/local/lib/python2.6/dist-packages/djapian/management/
commands/index.py", line 168, in handle
rebuild(verbose, per_page, commit_each)
File "/usr/local/lib/python2.6/dist-packages/djapian/management/
commands/index.py", line 130, in rebuild
indexer.update(None, after_index, per_page, commit_each)
File "/usr/local/lib/python2.6/dist-packages/djapian/indexer.py",
line 262, in update
value = field.resolve(obj)
File "/usr/local/lib/python2.6/dist-packages/djapian/indexer.py",
line 71, in resolve
map(lambda v: smart_str(self.resolve_one(v, bit)), value)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position
13: ordinal not in range(128)
8<----------------------------------------------------------------------
I'm using Django 1.2beta with djapian's SVN trunk (rev 356),
PostgreSQL 8.4 and Python 2.6.
Any idea?
Thank you,
Andi
--
You received this message because you are subscribed to the Google Groups "Djapian Users" group.
To post to this group, send email to
djapia...@googlegroups.com.
To unsubscribe from this group, send email to
djapian-user...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/djapian-users?hl=en.