django-geojson
django-geojson copied to clipboard
Low-level serializer. UTF8.
When, i use Low-level serializer, get this mistake:
'utf8' codec can't decode byte 0xa6 in position 14: invalid start byte. You passed in '\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00_\xa6R@\x91\xbc:IoE@' (<type 'str'="">)
Could you please provide the full stacktrace please ?
I use only this code: GeoJSONSerializer().serialize(Restaurants.objects.all(), use_natural_keys=True, with_modelname=False)
DjangoUnicodeDecodeError in http://dpaste.com/1NFBKPS indicates to serializers.py: in serialize ...elif isinstance(queryset, QuerySet): self.serialize_queryset(queryset) ...370 in serialize_queryset ...self.handle_field(obj, self.geometry_field) ...311 in handle_field ...if isinstance(obj, Model): value = getattr(obj, field_name) ...207
DB: utf8_general_ci, MyISAM Language: russian all filies have: # -- coding: utf-8 --
Was one step, this wonderful application, in my project. Anybody?
I'm sorry I can't spend some time right now. The paste seems to have been purged...
Can you try to accomplish the same operations using the default Django Serializers (JSON for ex) ? ...just to make sure the problem comes from this package, and not from your database setup or content...