Em quarta-feira, 26 de junho de 2013 11h22min18s UTC-3, Odin escreveu:
--Jaimerson, ainda assim creio que você deva tentar adicionar ao topo de suas views e/ou dos módulos usados do admin-tools a linha:# -*- coding: utf-8 -*- ou # -*- coding: iso-8859-1 -*-Isso permitirá ao Python ler o arquivo no encoding definido.2013/6/26 Jaimerson Leandro Amaro de Araújo <jaimers...@gmail.com>
Uh, I know it`s an encoding problem, I was hoping there was a way of changing default charset for that app.
Em quarta-feira, 26 de junho de 2013 10h16min02s UTC-3, Odin escreveu:Think it's an encode problem. I never use this app but try to add this line o top of your views file:# -*- coding: utf-8 -*-2013/6/26 Jaimerson Leandro Amaro de Araújo <jaimers...@gmail.com>(I posted this on django-admin-tools mail list, but apparently there's no one alive there)To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.
Hello, I'm stuck in a encoding issue, on the dashboard template. Some of my models have fields with non-ascii characters (like "à" or "á"), and when I try to load the page, I get the following error:DjangoUnicodeDecodeError at /
[...]'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128).
You passed in <django.utils.functional.__proxy__ object at 0xb581d98c> (<class 'django.utils.functional.__pro xy__'>)
Unicode error hint
The string that could not be encoded/decoded was: Conte��do
Please, advise. --
You received this message because you are subscribed to the Google Groups "Django users" group.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
For more options, visit https://groups.google.com/groups/opt_out .
--
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...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users .
For more options, visit https://groups.google.com/groups/opt_out .
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.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment