Monday, April 29, 2013

Re: Upload csv with utf-8

On Mon, Apr 29, 2013 at 12:43 PM, Hélio Miranda <helio13m@gmail.com> wrote:
> in my code was trying to do this
> rep.GenreType line = ["IdGenre."] decode ("utf-8")
>
> but it gives me the following error:
> 'utf8' codec can not decode byte 0xE9 in position 3: invalid continuation
> byte
>
> Unicode error hint
>
> The string That Could not be encoded / decoded was: Com�dia
>

I doubt your content is UTF-8 encoded (because of the contents of the
error message) - try latin1 instead of UTF-8.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment