Orkut Gmail Agenda Docs Web mais »
Grupos visitados recentemente | Ajuda | Acessar
Página inicial dos Grupos do Google
Mensagem sobre o tópico Dúvida ascii

Visualizar analisado - Mostrar apenas o texto da mensagem ??

Received: by 10.35.13.4 with SMTP id q4mr12957671pyi.7.1208254246218;
        Tue, 15 Apr 2008 03:10:46 -0700 (PDT)
Return-Path: <mari...@gmail.com>
Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153])
        by mx.google.com with ESMTP id x46si5953658pyg.2.2008.04.15.03.10.44;
        Tue, 15 Apr 2008 03:10:46 -0700 (PDT)
Received-SPF: pass (google.com: domain of mari...@gmail.com designates 72.14.220.153 as permitted sender) client-ip=72.14.220.153;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of mari...@gmail.com designates 72.14.220.153 as permitted sender) smtp.mail=mari...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by fg-out-1718.google.com with SMTP id d23so2007254fga.33
        for <django-brasil@googlegroups.com>; Tue, 15 Apr 2008 03:10:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        bh=rHSRwo72/zeGTDhiqvOw7d+YAzYIOrBTFRUjaLvTQPo=;
        b=aRzHoy3MDekLLy1F+9VPk78cAkAzSUhmENoMYTOR5evRhLTW8w4C6ECg30mjW3ijaSq5Yw7Uijr/oQFHsLysyzhcAQmd9K/E5vCLTGzvgWcmGwKePOG8IxhsvFqNxJ+TfBEtTlRUZ/XwZCpMa0TKNCy/Rs3ReZLVroTtSb7axkE=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=cY4rh3tR5VDEpsuP2f3glZJrSJFNhxp2FInBcitWpiSf4jk1hYEz43eIEZvxA5RH04EONuA7MoLqIU4c3opSY033l9Xkz5iPM3+Ng1+t5GnQ+tGZ2hpBUAjf8Fs5d6iJ4R0Io5Hguo7rLR7EC8FG/z+aEookuI7DjubC76puG4c=
Received: by 10.86.59.2 with SMTP id h2mr15747130fga.19.1208254244407;
        Tue, 15 Apr 2008 03:10:44 -0700 (PDT)
Received: by 10.86.27.14 with HTTP; Tue, 15 Apr 2008 03:10:44 -0700 (PDT)
Message-ID: <5d1dc4bb0804150310k17f44841lfb0462753dff9b6a@mail.gmail.com>
Date: Tue, 15 Apr 2008 07:10:44 -0300
From: "Marinho Brandao" <mari...@gmail.com>
To: django-brasil@googlegroups.com
Subject: =?ISO-8859-1?Q?Re:_[django-brasil]_D=FAvida_ascii?=
In-Reply-To: <939c23dd0804150015s26b488bcn399dad718d5dc...@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
References: <939c23dd0804150015s26b488bcn399dad718d5dc...@mail.gmail.com>

O=E1 Damon,

coloque a seguinte linha no inicio do arquivo:

# -*- coding: utf-8 -*-

e veja se funciona :)

2008/4/15 Damon Abdiel <damon.abd...@gmail.com>:
> Ol=E1 pessoal estou estudando pelo djangobook.com e ao fazer o primeiro
> exerc=EDcio:
>
> from django.http import HttpResponse
>
> import datetime
>
>
> def current_datetime(request):
>  now =3D datetime.datetime.now()
>
>  html =3D "<html><body>It is now %s.</body></html>" % now
>
>  return HttpResponse(html)
>
>
> eu resolvi trocar o "it is now" por "essa =E9 a hora" acontece que por cau=
sa
> do acento ele apresenta a seguinte mensagem de erro:
>
> SyntaxError at /time/
> Non-ASCII character '\xc3' in file
> /home/oraculum/djcode/mysite/../mysite/views.py on line 6, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> (views.py, line 6)
>  Request Method: GET
>  Request URL: http://localhost:8000/time/
>  Exception Type: SyntaxError
>  Exception Value: Non-ASCII character '\xc3' in file
> /home/oraculum/djcode/mysite/../mysite/views.py on line 6, but no encoding
> declared; see http://www.python.org/peps/pep-0263.html for details
> (views.py, line 6)
>  Exception Location:
> /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in
> _get_urlconf_module, line 177
>
> sem o acento ele funciona normalmente, aglu=E9m ai poderia me dizer como
> configur=E1-lo para aceitar os acentos.
>
>
>
>  >
>



--=20
Marinho Brand=E3o (Jos=E9 M=E1rio)
http://marinho.webdoisonline.com/

Criar um grupo - Grupos do Google - Página inicial do Google - Termos de Uso - Política de Privacidade
©2009 Google