On Tue, 2008-02-12 at 16:18 -0800, Steve wrote: > Hi, > I get this error: > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > position 1393: unexpected code byte > The string that could not be encoded/decoded was: ight � 2006 > > The part of the static template it is complaining about is the © > character: > > <div id="footer">Copyright © 2006-2008 ...... </div> > > How do I get the © character translated correctly?
Check that the template file has been saved in UTF-8 format to disk. Alternatively, if your template files are not UTF-8, make sure they are all encoded with the same encoding and then read up about the FILE_CHARSET setting. Basically, Django has to know how to convert the data it's reading from disk into Unicode data. It assumes you are using UTF-8 encoding, by default; if you are using something different, you must be using the same encoding for all your template files and you have to tell Django what that encoding is. -- Plan to be spontaneous - tomorrow. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

