librelist archives

« back to archive

"Español and Français" -> UnicodeDecodeError

"Español and Français" -> UnicodeDecodeError

From:
Chris Collins
Date:
2010-06-30 @ 22:42
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

Re: [flask] "Español and Français" -> Unic

From:
Armin Ronacher
Date:
2010-06-30 @ 23:08
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

Re: [flask] "Español and Français" -> Unic

From:
Chris Collins
Date:
2010-06-30 @ 23:21
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
>