Web Images Videos Maps News Shopping Google Mail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion How do I set my form to be a unicode string?
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Christoph Haas  
View profile   Translate to Translated (View Original)
 More options 1 July 2007, 08:46
From: Christoph Haas <em...@christoph-haas.de>
Date: Sun, 1 Jul 2007 09:46:07 +0200
Local: Sun 1 July 2007 08:46
Subject: Re: How do I set my form to be a unicode string?

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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google