'utf8' codec can't decode byte 0xe9 in position 303: invalid continuation byte

2,925 views
Skip to first unread message

Alex s

unread,
Nov 21, 2010, 2:51:52 PM11/21/10
to django...@googlegroups.com
Hi,

In homepage.html file, I am trying to write the letter "é". So I have the following error:
'utf8' codec can't decode byte 0xe9 in position 303: invalid continuation byte

How can I resolve this ? I am trying to use brazilian language.

Thanks
Alex

Tiago Almeida

unread,
Nov 22, 2010, 9:35:53 AM11/22/10
to Django users
Hi, change the encoding of the html file to 'utf-8'.
If you're using eclipse(pydev), you can do this by going to Edit ->
set encoding. (or something like that)
I remember it is the last choice in one of the top menus and it reads
"Set enconding".

Best regards,
Tiago Almeida

cocolombo

unread,
Nov 22, 2010, 10:58:29 AM11/22/10
to Django users
The following line at the top of the file solved it for my french
characters.

# -*- coding: latin-1 -*-

cclmb

===
Reply all
Reply to author
Forward
0 new messages