dakrauth / django-swingtime

📆 Event and occurrence scheduling application for Django
https://dakrauth.github.io/django-swingtime/
MIT License
318 stars 99 forks source link

Event title error when containing special characters like "é" : 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128) #20

Open adimux opened 8 years ago

adimux commented 8 years ago

I encountered this issue when creating an event whose title is "Début stage". The line in cause is the 206th from the file /site-packages/swingtime/models.py when the occurrence is outputted as string.

/site-packages/swingtime/models.py 204 #--------------------------------------------------------------------------- 205 def str(self): 206 return '{}: {}'.format(self.title, self.start_time.isoformat())

adimux commented 8 years ago

To fix it, we need to replace the 206th line with 206 return '%s: %s' % (self.title, self.start_time.isoformat())