I have these two words (each containing a 'special' character) in one of my templates: *Español* and *Français* It produces this error: *UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1498-1501: invalid data** * Does anyone know the correct way to work around this error? I found a similar issue reported on StackOverflow here but am not sure how to apply this advice in Flask: http://stackoverflow.com/questions/1355285/latin-letters-with-acute-djangounicodedecodeerror
Hi,
On 7/1/10 12:42 AM, Chris Collins wrote:
> Does anyone know the correct way to work around this error?
You have to tell your editor to save the file as utf-8. Check your
editor's documentation about how to do that.
Regards,
Armin
Wow. It was that easy?! It worked. Thanks, Armin!! Flask Rocks! - Chris On Thu, Jul 1, 2010 at 1:08 AM, Armin Ronacher <armin.ronacher@active-4.com>wrote: > Hi, > > On 7/1/10 12:42 AM, Chris Collins wrote: > > Does anyone know the correct way to work around this error? > You have to tell your editor to save the file as utf-8. Check your > editor's documentation about how to do that. > > > Regards, > Armin >