Message from discussion
How do I set my form to be a unicode string?
Received: by 10.36.145.2 with SMTP id s2mr3419978nzd.1183275971686;
Sun, 01 Jul 2007 00:46:11 -0700 (PDT)
Return-Path: <em...@christoph-haas.de>
Received: from torf.workaround.org (haas.workdsl.de [212.12.44.217])
by mx.google.com with ESMTP id v28si1553290nzb.2007.07.01.00.46.10;
Sun, 01 Jul 2007 00:46:11 -0700 (PDT)
Received-SPF: neutral (google.com: 212.12.44.217 is neither permitted nor denied by best guess record for domain of em...@christoph-haas.de)
Received: from localhost (localhost [127.0.0.1])
by torf.workaround.org (Postfix) with ESMTP id 06D44FFF1
for <pylons-discuss@googlegroups.com>; Sun, 1 Jul 2007 09:46:09 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at torf.workaround.org
Received: from torf.workaround.org ([127.0.0.1])
by localhost (torf.workaround.org [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 42wHeB-i+JSb for <pylons-discuss@googlegroups.com>;
Sun, 1 Jul 2007 09:46:08 +0200 (CEST)
Received: from laptux.ov.otto.de (ottobook.workaround.org [212.12.58.138])
by torf.workaround.org (Postfix) with ESMTP id 5F36BFFF0
for <pylons-discuss@googlegroups.com>; Sun, 1 Jul 2007 09:46:08 +0200 (CEST)
Received: by laptux.ov.otto.de (Postfix, from userid 1000)
id 3D8EF42F4; Sun, 1 Jul 2007 09:46:08 +0200 (CEST)
Date: Sun, 1 Jul 2007 09:46:07 +0200
From: Christoph Haas <em...@christoph-haas.de>
To: pylons-discuss@googlegroups.com
Subject: Re: How do I set my form to be a unicode string?
Message-ID: <20070701074607.GA4666@laptux.ov.otto.de>
References: <32cabba0706300755s4c5857e1m35dcadd5ab563fec@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <32cabba0706300755s4c5857e1m35dcadd5ab563fec@mail.gmail.com>
X-Binford: 2000 (more power)
User-Agent: Mutt/1.5.13 (2006-08-11)
On Sat, Jun 30, 2007 at 11:55:25AM -0300, Walter Cruz wrote:
> I'm getting this error:
>
> <type 'exceptions.UnicodeDecodeError'>: 'ascii' codec can't decode
> byte 0xc3 in position 79: ordinal not in range(128) the form was
> passed in as an encoded string, but some data or error messages were
> unicode strings; the form should be passed in as a unicode string
Depends on where that error occurs. Can you post a complete traceback?
> How do I set the form to be unicode?
Use the
# -*- coding: utf-8 -*-
preamble in the first line of your templates.
Christoph