Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jun 30, 2016 · 1 comment

Comments

@adimux
Copy link

adimux commented Jun 30, 2016

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
Copy link
Author

adimux commented Jun 30, 2016

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

LiamK added a commit to LiamK/django-swingtime that referenced this issue Jul 2, 2016
LiamK added a commit to LiamK/django-swingtime that referenced this issue Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant