#26736: SpatialReference couldn't be initialized with WKT that contains unicode
characters
----------------------------+--------------------
Reporter: sir-sigurd | Owner: nobody
Type: Bug | Status: new
Component: GIS | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
{{{
#!python
from django.contrib.gis.db.backends.spatialite.models import
SpatialiteSpatialRefSys as SpatialRefSys
from django.contrib.gis.gdal.srs import SpatialReference
SpatialReference(SpatialRefSys.objects.get(srid=187939).srtext)
}}}
{{{
/home/sergey/dev/django/django/contrib/gis/gdal/srs.py in __init__(self,
srs_input, srs_type)
58 # Encoding to ASCII if unicode passed in.
59 if isinstance(srs_input, six.text_type):
---> 60 srs_input = srs_input.encode('ascii')
61 try:
62 # If SRID is a string, e.g., '4326', then make
acceptable
UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in
position 34: ordinal not in range(128)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26736>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/053.67a01f1a00bec83829560e74554a7f24%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.