Hello,
I'm getting a Key Error when post 'content' contains any special characters and foreign language letters in detail view. Oddly, in the list view, special characters and foreign language letters show up without problems.
How can I fix this?
I already tried adding to posts/models.py without any success.
class Post(models.Model):
content = models.TextField()
def unicode(self):
return u'%s' %(self.content)
Kindly,
James
// Debug message //
Django Version: 1.9
Exception Type: KeyError
Exception Value:
u'\u5929'
Exception Location: /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py in quote, line 1303
Python Executable: /Users/***/.pyenv/versions/django-blog/bin/python
Python Version: 2.7.10
Hello,
I'm getting a Key Error when post 'content' contains any special characters and foreign language letters in detail view. Oddly, in the list view, special characters and foreign language letters show up without problems.
How can I fix this?
I already tried adding to posts/models.py without any success.
Kindly,
James
// Debug message //