﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
26736	SpatialReference crashes when initialized with WKT containining unicode characters	Sergey Fedoseev	Sergey Fedoseev	"{{{
#!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)
}}}"	Bug	closed	GIS	1.8	Normal	fixed			Ready for checkin	1	0	0	0	0	0
