Fantomas42 / django-blog-zinnia

Simple yet powerful and really extendable application for managing a blog within your Django Web site.
http://django-blog-zinnia.com/
BSD 3-Clause "New" or "Revised" License
2.11k stars 732 forks source link

Unicode Error in blogger2zinnia #316

Closed uKev closed 10 years ago

uKev commented 10 years ago

Trying to import a blog from blogger to zinnia, the result is:

- Importing entries
Traceback (most recent call last):
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/bin/django-admin.py", line 5, in 
    management.execute_from_command_line()
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/lib/python2.7/site-packages/django/core/management/base.py", line 415, in handle
    return self.handle_noargs(**options)
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/src/django-blog-zinnia/zinnia/management/commands/blogger2zinnia.py", line 128, in handle_noargs
    self.import_posts()
  File "/home/kev/.dotfiles/.virtualenvs/ff-py2/src/django-blog-zinnia/zinnia/management/commands/blogger2zinnia.py", line 171, in import_posts
    strip_tags(unicode(content))).words(50) or ''
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal not in range(128)
Fantomas42 commented 10 years ago

Wich version of Zinnia do you use ? Because I don't have the same code for

strip_tags(unicode(content))).words(50) or ''
strip_tags(content)).words(50) or ''

Maybe the issue is coming from this. Also it could be a good solution if send me directly by email the informations to access at your blogger account to develop an efficient fix.

Regards